Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4964

SDK • Re: RP2350: systick gotcha - FYI

$
0
0
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

Code:

#define shortpause(a){systick_hw->cvr=0;__dmb();while(systick_hw->cvr>a){};}
Since the __dmb() is largely a no-op but guaranteed to take a cycle (or probably 2)

Statistics: Posted by kilograham — Sat Aug 31, 2024 10:06 pm



Viewing all articles
Browse latest Browse all 4964

Trending Articles