SHARE
TWEET

Untitled

a guest Jun 14th, 2010 175 Never
  1. static inline void delay_loop(void)
  2. {
  3.     asm volatile(
  4.         "0:\n"
  5.         "  add %0, %0, #1\n"
  6.         "  cmp %1, %0\n"
  7.         "  bne 0b"
  8.         : : "r"(0), "r"(FREQ >> 22));
  9. }
  10. #define DELAY delay_loop()
RAW Paste Data
Top