![](/media/cache/profiles/b5c4ec91390a6fbccf8d918d443563ed.jpg.50x50_q85.jpg)
Lizzy project
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
tasks/tasks.h@19:2681edc2f2b9, 2018-09-13 (annotated)
- Committer:
- jurica238814
- Date:
- Thu Sep 13 12:20:35 2018 +0200
- Branch:
- mbedOsUpdate
- Revision:
- 19:2681edc2f2b9
- Parent:
- 8:7ba4f82de9b6
Work in progress
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" |
jurica238814 | 19:2681edc2f2b9 | 5 | #include "mbed.h" |
jurica238814 | 19:2681edc2f2b9 | 6 | #include "ble/BLE.h" |
dbartolovic | 8:7ba4f82de9b6 | 7 | |
dbartolovic | 8:7ba4f82de9b6 | 8 | #define TEST_LEDS_BUZZ (0) |
dbartolovic | 8:7ba4f82de9b6 | 9 | |
dbartolovic | 8:7ba4f82de9b6 | 10 | #define MEASURE_INTERVAL_MS (100) |
dbartolovic | 8:7ba4f82de9b6 | 11 | |
dbartolovic | 8:7ba4f82de9b6 | 12 | #define MEAS_DONE (0x00001000) |
dbartolovic | 8:7ba4f82de9b6 | 13 | #define UPDATE_BUZZ_LEDS (0x00001001) |
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 | 8:7ba4f82de9b6 | 26 | |
jurica238814 | 19:2681edc2f2b9 | 27 | #endif//__TASKS_H__ |