Lizzy project
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
tasks/tasks.h@16:482d8f81d6f3, 2018-08-29 (annotated)
- Committer:
- dbartolovic
- Date:
- Wed Aug 29 17:08:08 2018 +0000
- Branch:
- axis_normal
- Revision:
- 16:482d8f81d6f3
- Parent:
- 15:c0c01188a29b
- Child:
- 24:7539258b015c
Debuged wake on shake. If consumption in sleep is half mA make sure mbed-os version is 5.8
Who changed what in which revision?
User | Revision | Line number | New 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 | 15:c0c01188a29b | 9 | #define ACTIVE_PERIOD (10000) |
dbartolovic | 8:7ba4f82de9b6 | 10 | |
dbartolovic | 8:7ba4f82de9b6 | 11 | #define MEAS_DONE (0x00001000) |
dbartolovic | 8:7ba4f82de9b6 | 12 | #define UPDATE_BUZZ_LEDS (0x00001001) |
dbartolovic | 15:c0c01188a29b | 13 | #define START_MEAS (0x00010000) |
dbartolovic | 8:7ba4f82de9b6 | 14 | |
dbartolovic | 8:7ba4f82de9b6 | 15 | void tasks_init(); |
dbartolovic | 8:7ba4f82de9b6 | 16 | |
dbartolovic | 8:7ba4f82de9b6 | 17 | #if TEST_LEDS_BUZZ |
dbartolovic | 8:7ba4f82de9b6 | 18 | void led_tick(); |
dbartolovic | 8:7ba4f82de9b6 | 19 | void buzz_tick(); |
dbartolovic | 8:7ba4f82de9b6 | 20 | #endif |
dbartolovic | 8:7ba4f82de9b6 | 21 | |
dbartolovic | 8:7ba4f82de9b6 | 22 | void measureF(Lis2dh12 *mems); |
dbartolovic | 8:7ba4f82de9b6 | 23 | void updateServiceF(); |
dbartolovic | 8:7ba4f82de9b6 | 24 | void updateBuzzLedsF(); |
dbartolovic | 8:7ba4f82de9b6 | 25 | void bleF(BLE *ble); |
dbartolovic | 16:482d8f81d6f3 | 26 | void servLoopC(void); |
dbartolovic | 8:7ba4f82de9b6 | 27 | |
dbartolovic | 8:7ba4f82de9b6 | 28 | #endif//__TASKS_H__ |