00001 //***************************************************************************** 00002 // 00003 // Macros for hardware access 00004 // 00005 //***************************************************************************** 00006 #define HWREG(x) \ 00007 (*((volatile unsigned int *)(x))) 00008 #define HWREGB(x) \ 00009 (*((volatile unsigned char *)(x))) 00010 00011 00012 //***************************************************************************** 00013 // 00014 // SUCCESS and FAILURE for API return value 00015 // 00016 //***************************************************************************** 00017 #define STATUS_SUCCESS 0x01 00018 #define STATUS_FAIL 0x00 00019