Browse code

Add modified LPM3_EXIT_ISR to work around FLL IRQ wake-up problem

Nils Faerber authored on 06/07/2013 21:19:55
Showing 1 changed files
... ...
@@ -12,6 +12,7 @@
12 12
 #endif
13 13
 #include "hal_io_macros.h"
14 14
 
15
+#define LPM3_EXIT_ISR() { _BIC_SR_IRQ(SCG1+OSCOFF+CPUOFF); nop(); }
15 16
 
16 17
 #define WATCHDOG_EVENT		1 << 0
17 18
 #define RTC_1HZ_EVENT		1 << 1
Browse code

Power saving changes, add new fonts, bitmaps and screens

Nils Faerber authored on 19/05/2013 00:07:04
Showing 1 changed files
... ...
@@ -21,7 +21,8 @@
21 21
 #define TIMER_100MS_EVENT	1 << 5
22 22
 #define POWER_SRC_EVENT		1 << 6
23 23
 #define BT_UART_RCV_EVENT	1 << 7
24
-#define ACCEL_EVENT		1 << 8
24
+#define BT_UART_WAKEUP_EVENT	1 << 8
25
+#define ACCEL_EVENT		1 << 9
25 26
 
26 27
 extern unsigned int _event_src;
27 28
 
Browse code

Make accelerometer work, interrup driven tilt change mode

Nils Faerber authored on 05/05/2013 21:22:33
Showing 1 changed files
... ...
@@ -21,6 +21,7 @@
21 21
 #define TIMER_100MS_EVENT	1 << 5
22 22
 #define POWER_SRC_EVENT		1 << 6
23 23
 #define BT_UART_RCV_EVENT	1 << 7
24
+#define ACCEL_EVENT		1 << 8
24 25
 
25 26
 extern unsigned int _event_src;
26 27
 
Browse code

Add version information and info screen, some more work on the accel screen

Nils Faerber authored on 05/05/2013 01:54:24
Showing 1 changed files
... ...
@@ -1,6 +1,8 @@
1 1
 #ifndef _GCCFWTEST_LCD_H
2 2
 #define _GCCFWTEST_LCD_H
3 3
 
4
+#define MW_MAIN_VERSION "MW v0.4"
5
+
4 6
 #if defined MW_DEVBOARD_V2
5 7
 #include "hal_devboard_v2_defs.h"
6 8
 #elif defined MW_DIGITAL_V2
Browse code

Here we are! MetaWatch support in Oswald!

Nils Faerber authored on 27/04/2013 20:22:32
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,35 @@
1
+#ifndef _GCCFWTEST_LCD_H
2
+#define _GCCFWTEST_LCD_H
3
+
4
+#if defined MW_DEVBOARD_V2
5
+#include "hal_devboard_v2_defs.h"
6
+#elif defined MW_DIGITAL_V2
7
+#include "hal_digital_v2_defs.h"
8
+#else
9
+#error "Define a watch type!"
10
+#endif
11
+#include "hal_io_macros.h"
12
+
13
+
14
+#define WATCHDOG_EVENT		1 << 0
15
+#define RTC_1HZ_EVENT		1 << 1
16
+#define DBG_UART_RCV_EVENT	1 << 2
17
+#define BUTTON_EVENT		1 << 3
18
+#define TIMER_500MS_EVENT	1 << 4
19
+#define TIMER_100MS_EVENT	1 << 5
20
+#define POWER_SRC_EVENT		1 << 6
21
+#define BT_UART_RCV_EVENT	1 << 7
22
+
23
+extern unsigned int _event_src;
24
+
25
+//#define TIMER_500MS_CYCLES		32768
26
+
27
+#define TIMER_500MS_CYCLES		16384
28
+#define TIMER_100MS_CYCLES		327
29
+
30
+void start_timer(int cycles);
31
+void stop_timer(void);
32
+
33
+uint8_t handle_event(void);
34
+
35
+#endif