Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Committer:
dbartolovic
Date:
Tue Mar 20 15:13:51 2018 +0000
Revision:
8:7ba4f82de9b6
Child:
15:c0c01188a29b
Child:
19:2681edc2f2b9
Added lizzy service.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dbartolovic 8:7ba4f82de9b6 1 #ifndef __TASKS_H__
dbartolovic 8:7ba4f82de9b6 2 #define __TASKS_H__
dbartolovic 8:7ba4f82de9b6 3
dbartolovic 8:7ba4f82de9b6 4 #include "Lis2dh12.h"
dbartolovic 8:7ba4f82de9b6 5
dbartolovic 8:7ba4f82de9b6 6 #define TEST_LEDS_BUZZ (0)
dbartolovic 8:7ba4f82de9b6 7
dbartolovic 8:7ba4f82de9b6 8 #define MEASURE_INTERVAL_MS (100)
dbartolovic 8:7ba4f82de9b6 9
dbartolovic 8:7ba4f82de9b6 10 #define MEAS_DONE (0x00001000)
dbartolovic 8:7ba4f82de9b6 11 #define UPDATE_BUZZ_LEDS (0x00001001)
dbartolovic 8:7ba4f82de9b6 12
dbartolovic 8:7ba4f82de9b6 13 void tasks_init();
dbartolovic 8:7ba4f82de9b6 14
dbartolovic 8:7ba4f82de9b6 15 #if TEST_LEDS_BUZZ
dbartolovic 8:7ba4f82de9b6 16 void led_tick();
dbartolovic 8:7ba4f82de9b6 17 void buzz_tick();
dbartolovic 8:7ba4f82de9b6 18 #endif
dbartolovic 8:7ba4f82de9b6 19
dbartolovic 8:7ba4f82de9b6 20 void measureF(Lis2dh12 *mems);
dbartolovic 8:7ba4f82de9b6 21 void updateServiceF();
dbartolovic 8:7ba4f82de9b6 22 void updateBuzzLedsF();
dbartolovic 8:7ba4f82de9b6 23 void bleF(BLE *ble);
dbartolovic 8:7ba4f82de9b6 24
dbartolovic 8:7ba4f82de9b6 25 #endif//__TASKS_H__