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
... ...
@@ -40,5 +40,6 @@ void hal_bluetooth_send_data(const void *mdat, uint16_t mlen);
40 40
 void hal_accelerometer_enable(void);
41 41
 void hal_accelerometer_disable(void);
42 42
 
43
-#endif
43
+uint16_t hal_amblight_get_val(void);
44 44
 
45
+#endif
Browse code

Make accelerometer work, interrup driven tilt change mode

Nils Faerber authored on 05/05/2013 21:22:33
Showing 1 changed files
... ...
@@ -36,5 +36,9 @@ uint8_t *hal_bluetooth_get_local_bdaddr(void);
36 36
 void hal_bluetooth_set_visible(boolean visible);
37 37
 boolean hal_bluetooth_get_visible(void);
38 38
 void hal_bluetooth_send_data(const void *mdat, uint16_t mlen);
39
+
40
+void hal_accelerometer_enable(void);
41
+void hal_accelerometer_disable(void);
42
+
39 43
 #endif
40 44
 
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
... ...
@@ -5,6 +5,10 @@
5 5
  * these functions must be implemented for a concrete hardware
6 6
  */
7 7
 
8
+const char *hal_get_version_string(void);
9
+const char *hal_get_buildno_string(void);
10
+const char *hal_get_radio_version_string(void);
11
+
8 12
 void hal_lcd_set_pixel(uint8_t x, uint8_t y, uint8_t color);
9 13
 void hal_lcd_clear_display(void);
10 14
 void hal_lcd_update_display(void);
Browse code

Lot's of stuff...

Nils Faerber authored on 27/04/2013 20:19:55
Showing 1 changed files
... ...
@@ -5,7 +5,7 @@
5 5
  * these functions must be implemented for a concrete hardware
6 6
  */
7 7
 
8
-void hal_lcd_set_pixel(unsigned int x, unsigned int y, unsigned char state);
8
+void hal_lcd_set_pixel(uint8_t x, uint8_t y, uint8_t color);
9 9
 void hal_lcd_clear_display(void);
10 10
 void hal_lcd_update_display(void);
11 11
 /* sets the backlight on/off, on=TRUE, off=FALSE */
Browse code

Bluetooth handling, screen reworks for icons

Nils Faerber authored on 21/04/2013 23:10:13
Showing 1 changed files
... ...
@@ -26,5 +26,11 @@ void hal_get_power_state(power_state *pwr);
26 26
 void hal_vibration_set_state(boolean state);
27 27
 boolean hal_vibration_get_state(void);
28 28
 
29
+bluetooth_state hal_bluetooth_set_state(bluetooth_state state);
30
+bluetooth_state hal_bluetooth_get_state(void);
31
+uint8_t *hal_bluetooth_get_local_bdaddr(void);
32
+void hal_bluetooth_set_visible(boolean visible);
33
+boolean hal_bluetooth_get_visible(void);
34
+void hal_bluetooth_send_data(const void *mdat, uint16_t mlen);
29 35
 #endif
30 36
 
Browse code

Oh boy... lots of changes, too many to describe

Nils Faerber authored on 21/04/2013 14:26:38
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+#ifndef _oswald_hal_h
2
+#define _oswald_hal_h
3
+
4
+/*
5
+ * these functions must be implemented for a concrete hardware
6
+ */
7
+
8
+void hal_lcd_set_pixel(unsigned int x, unsigned int y, unsigned char state);
9
+void hal_lcd_clear_display(void);
10
+void hal_lcd_update_display(void);
11
+/* sets the backlight on/off, on=TRUE, off=FALSE */
12
+void hal_lcd_set_backlight(boolean state);
13
+boolean hal_lcd_get_backlight(void);
14
+
15
+void hal_enable_centisecond_timer(void);
16
+void hal_disable_centisecond_timer(void);
17
+
18
+void hal_enable_halfsecond_timer(void);
19
+void hal_disable_halfsecond_timer(void);
20
+
21
+void hal_get_rtc(clock_state *rtc);
22
+void hal_set_rtc(clock_state *rtc, boolean set_set);
23
+void hal_get_power_state(power_state *pwr);
24
+
25
+/* sets the vibration motor on/off, on=TRUE, off=FALSE */
26
+void hal_vibration_set_state(boolean state);
27
+boolean hal_vibration_get_state(void);
28
+
29
+#endif
30
+