6 #define enable_timer(x) \
7 do { REG_TMCNT_H(x) |= TMCNT_EN; } while(0)
9 #define disable_timer(x) \
10 do { REG_TMCNT_H(x) &= ~TMCNT_EN; } while(0)
12 volatile unsigned long timer_msec;
14 void init_timer(int tm, unsigned long rate_hz, void (*intr)(void));
16 void reset_msec_timer(void);
18 void delay(unsigned long ms);
21 #define udelay(x) asm volatile ( \
22 "0: sub %0, %0, #1\n\t" \
26 #define udelay(x) asm volatile ( \
27 "0: subs %0, %0, #1\n\t" \