Indoor positioning. Central unit.
Dependencies: aconno_SEGGER_RTT
source/main.h@2:1b85a28b1e68, 2018-03-07 (annotated)
- Committer:
- dbartolovic
- Date:
- Wed Mar 07 11:43:39 2018 +0000
- Revision:
- 2:1b85a28b1e68
- Parent:
- 0:07a75b2fae14
Central module now sends messages as soon as it receives them.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 0:07a75b2fae14 | 1 | /* |
jurica238814 | 0:07a75b2fae14 | 2 | * |
jurica238814 | 0:07a75b2fae14 | 3 | * |
jurica238814 | 0:07a75b2fae14 | 4 | */ |
jurica238814 | 0:07a75b2fae14 | 5 | |
jurica238814 | 0:07a75b2fae14 | 6 | #ifndef MAIN_H |
jurica238814 | 0:07a75b2fae14 | 7 | #define MAIN_H |
jurica238814 | 0:07a75b2fae14 | 8 | |
jurica238814 | 0:07a75b2fae14 | 9 | #include "mbed.h" |
jurica238814 | 0:07a75b2fae14 | 10 | #include "aconno_ble.h" |
jurica238814 | 0:07a75b2fae14 | 11 | #include "tasks.h" |
jurica238814 | 0:07a75b2fae14 | 12 | #include "ble/BLE.h" |
jurica238814 | 0:07a75b2fae14 | 13 | #include "GapAdvertisingData.h" |
jurica238814 | 0:07a75b2fae14 | 14 | |
jurica238814 | 0:07a75b2fae14 | 15 | #define PRINT_ON_RTT (1) |
jurica238814 | 0:07a75b2fae14 | 16 | #define DEBUG_LED (1) |
jurica238814 | 0:07a75b2fae14 | 17 | |
jurica238814 | 0:07a75b2fae14 | 18 | #if PRINT_ON_RTT |
jurica238814 | 0:07a75b2fae14 | 19 | #include "SEGGER_RTT.h" |
jurica238814 | 0:07a75b2fae14 | 20 | #define printf(...) SEGGER_RTT_printf(0, __VA_ARGS__) |
jurica238814 | 0:07a75b2fae14 | 21 | #else |
jurica238814 | 0:07a75b2fae14 | 22 | #define printf(...) |
jurica238814 | 0:07a75b2fae14 | 23 | #endif |
jurica238814 | 0:07a75b2fae14 | 24 | |
dbartolovic | 2:1b85a28b1e68 | 25 | extern Thread tBleUpdateData; |
dbartolovic | 2:1b85a28b1e68 | 26 | extern Thread tBleStartAdvertising; |
dbartolovic | 2:1b85a28b1e68 | 27 | extern Thread tBleStartScanning; |
dbartolovic | 2:1b85a28b1e68 | 28 | extern Thread tPeriodicCallback; |
jurica238814 | 0:07a75b2fae14 | 29 | |
jurica238814 | 0:07a75b2fae14 | 30 | #endif // MAIN_H |