X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=metawatch%2Foswald_hal.c;h=528f1a6d230b5a1e655dc33ab494c09fed92d498;hp=449355dabddc3b7129edecefb6f38d82b0b71f00;hb=133faed023f55592a87ee1b8dbc74bc4a8917006;hpb=a9be019ac653badc27a55c94b8d50122eadf8c5f diff --git a/metawatch/oswald_hal.c b/metawatch/oswald_hal.c index 449355d..528f1a6 100644 --- a/metawatch/oswald_hal.c +++ b/metawatch/oswald_hal.c @@ -14,6 +14,7 @@ #include "bt_hci.h" #include "bt_l2cap.h" #include "bluetooth_init_cc256x.h" +#include "mw_acc.h" #include "oswald.h" #include "oswald_hal.h" @@ -249,3 +250,17 @@ void hal_bluetooth_send_data(const void *mdat, uint16_t mlen) bt_l2cap_send_channel(0x40, mdat, mlen); } +/* + * Control the accelerometer + */ +void hal_accelerometer_enable(void) +{ + mw_acc_enable(); +} + +void hal_accelerometer_disable(void) +{ + mw_acc_disable(); +} + +