Use of "nop" is not very reliable on M33 either, as they take no cycles when paired with another instruction (they are used for alignment at no cost)
I would recommend
Since the __dmb() is largely a no-op but guaranteed to take a cycle (or probably 2)
I would recommend
Code:
#define shortpause(a){systick_hw->cvr=0;__dmb();while(systick_hw->cvr>a){};}
Statistics: Posted by kilograham — Sat Aug 31, 2024 10:06 pm