]> git.karo-electronics.de Git - oswald.git/blobdiff - metawatch/mw_main.h
Add modified LPM3_EXIT_ISR to work around FLL IRQ wake-up problem
[oswald.git] / metawatch / mw_main.h
index 23dcf5efa49f11341199ff2853cf28b039815968..8d02f7d1906dcbbf50926eba0ec28206e513cc12 100644 (file)
@@ -12,6 +12,7 @@
 #endif
 #include "hal_io_macros.h"
 
+#define LPM3_EXIT_ISR() { _BIC_SR_IRQ(SCG1+OSCOFF+CPUOFF); nop(); }
 
 #define WATCHDOG_EVENT         1 << 0
 #define RTC_1HZ_EVENT          1 << 1
@@ -21,6 +22,8 @@
 #define TIMER_100MS_EVENT      1 << 5
 #define POWER_SRC_EVENT                1 << 6
 #define BT_UART_RCV_EVENT      1 << 7
+#define BT_UART_WAKEUP_EVENT   1 << 8
+#define ACCEL_EVENT            1 << 9
 
 extern unsigned int _event_src;