Indoor positioning. Peripheral unit.

Dependencies:   aconno_SEGGER_RTT

Committer:
jurica238814
Date:
Tue Mar 06 09:53:36 2018 +0000
Revision:
0:ad937152493a
Publish commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jurica238814 0:ad937152493a 1 /*
jurica238814 0:ad937152493a 2 *
jurica238814 0:ad937152493a 3 *
jurica238814 0:ad937152493a 4 */
jurica238814 0:ad937152493a 5
jurica238814 0:ad937152493a 6 #ifndef MAIN_H
jurica238814 0:ad937152493a 7 #define MAIN_H
jurica238814 0:ad937152493a 8
jurica238814 0:ad937152493a 9 #include "mbed.h"
jurica238814 0:ad937152493a 10 #include "aconno_ble.h"
jurica238814 0:ad937152493a 11 #include "tasks.h"
jurica238814 0:ad937152493a 12 #include "ble/BLE.h"
jurica238814 0:ad937152493a 13 #include "GapAdvertisingData.h"
jurica238814 0:ad937152493a 14
jurica238814 0:ad937152493a 15 #define DEBUG_LED (1)
jurica238814 0:ad937152493a 16 #define PRINT_ON_RTT (1)
jurica238814 0:ad937152493a 17
jurica238814 0:ad937152493a 18 #if PRINT_ON_RTT
jurica238814 0:ad937152493a 19 #include "SEGGER_RTT.h"
jurica238814 0:ad937152493a 20 #define printf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
jurica238814 0:ad937152493a 21 #else
jurica238814 0:ad937152493a 22 #define printf(...)
jurica238814 0:ad937152493a 23 #endif
jurica238814 0:ad937152493a 24
jurica238814 0:ad937152493a 25 Thread bleT;
jurica238814 0:ad937152493a 26
jurica238814 0:ad937152493a 27 #if DEBUG_LED
jurica238814 0:ad937152493a 28 DigitalOut advLed(p22);
jurica238814 0:ad937152493a 29 #endif
jurica238814 0:ad937152493a 30
jurica238814 0:ad937152493a 31 #endif // MAIN_H