... | ... |
@@ -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 |
|
... | ... |
@@ -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); |
... | ... |
@@ -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 */ |
... | ... |
@@ -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 |
|
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 |
+ |