38 #define LPM_ON LPM_CONF_ON 44 #define LPM_OFF LPM_CONF_OFF 46 #define LPM_OFF LPM1_EXIT 49 #define LPM_SLEEP() do { if(lpm_status == LPM_STATUS_ON) LPM_ON; } while(0) 50 #define LPM_AWAKE() do { if(lpm_status == LPM_STATUS_ON) LPM_OFF; } while(0) 52 extern unsigned char lpm_status;
57 #define LPM_STATUS_OFF 0 58 #define LPM_STATUS_ON 1