Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static inline void delay_loop(void)
- {
- asm volatile(
- "0:\n"
- " add %0, %0, #1\n"
- " cmp %1, %0\n"
- " bne 0b"
- : : "r"(0), "r"(FREQ >> 22));
- }
- #define DELAY delay_loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement