+static bluetooth_state bt_state = BLUETOOTH_OFF;
+static boolean bt_visible = FALSE;
+
+bluetooth_state hal_bluetooth_set_state(bluetooth_state state)
+{
+ bt_state = state;
+ if (bt_state == BLUETOOTH_OFF)
+ bt_visible = FALSE;
+
+ return bt_state;
+}
+
+bluetooth_state hal_bluetooth_get_state(void)
+{
+ return bt_state;
+}
+
+uint8_t *hal_bluetooth_get_local_bdaddr(void)
+{
+ static uint8_t local_bdaddr[6] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55};
+
+ return local_bdaddr;
+}
+
+void hal_bluetooth_set_visible(boolean visible)
+{
+ bt_visible = visible;
+}
+
+boolean hal_bluetooth_get_visible(void)
+{
+ return bt_visible;
+}
+
+void hal_bluetooth_send_data(const void *mdat, uint16_t mlen)
+{
+ g_printerr("write comm %d\n", mlen);
+}
+
+const char *hal_get_version_string(void)
+{
+ return "GTK v0.3";
+}
+
+const char *hal_get_buildno_string(void)
+{
+ return BUILDNO;
+}
+
+const char *hal_get_radio_version_string(void)
+{
+ return "BlueZ";
+}
+
+void hal_accelerometer_enable(void)
+{
+ g_printerr("accel enable\n");
+ gtk_widget_set_sensitive(ui_g->x_sc, TRUE);
+ gtk_widget_set_sensitive(ui_g->y_sc, TRUE);
+ gtk_widget_set_sensitive(ui_g->z_sc, TRUE);
+}
+
+void hal_accelerometer_disable(void)
+{
+ g_printerr("accel enable\n");
+ gtk_widget_set_sensitive(ui_g->x_sc, FALSE);
+ gtk_widget_set_sensitive(ui_g->y_sc, FALSE);
+ gtk_widget_set_sensitive(ui_g->z_sc, FALSE);
+}
+
+