Indoor positioning. Central unit.

Dependencies:   aconno_SEGGER_RTT

source/main.h

Committer:
jurica238814
Date:
2018-03-06
Revision:
0:07a75b2fae14
Child:
2:1b85a28b1e68

File content as of revision 0:07a75b2fae14:

/*
 *
 *
 */

#ifndef MAIN_H
#define MAIN_H

#include "mbed.h"
#include "aconno_ble.h"
#include "tasks.h"
#include "ble/BLE.h"
#include "GapAdvertisingData.h"

#define PRINT_ON_RTT    (1)
#define DEBUG_LED       (1)

#if PRINT_ON_RTT
    #include "SEGGER_RTT.h"
    #define printf(...)                      SEGGER_RTT_printf(0, __VA_ARGS__)
#else
    #define printf(...)
#endif

#if DEBUG_LED
    DigitalOut advLed(p22);
    DigitalOut scanLed(p23);
    DigitalOut periodicLed(p24);
#endif

Thread tBleStartAdvertising;
Thread tBleStartScanning;
Thread tPeriodicCallback;

#endif // MAIN_H