root/platform/ixus95_sd1200/sd1200_debug.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #define LED_IO_R 0xC0220130
   2 #define LED_IO_G 0xC0220134
   3 #define LED_IO_Y 0xC0220138
   4 #define LED_AF   0xC0223030
   5 
   6 #define DELAY_1S     { int i; for (i = 0; i < 0x200000; i++) { asm volatile ("nop\n" ); } }
   7 
   8 #define LED_ON(x) { volatile long *p = (void *)x; *p = 0x46; }
   9 #define LED_OFF(x) { volatile long *p = (void *)x; *p = 0x44; }
  10 
  11 #define LED_ON_1S(x) { volatile long *p = (void *)x; *p = 0x46; \
  12                     int i; for (i = 0; i < 0x200000; i++) { asm volatile ("nop\n" ); }  }
  13 #define LED_OFF_1S(x) { volatile long *p = (void *)x; *p = 0x44; \
  14                     int i; for (i = 0; i < 0x200000; i++) { asm volatile ("nop\n" ); }  }
  15 

/* [<][>][^][v][top][bottom][index][help] */