Indoor positioning. Peripheral unit.

Dependencies:   aconno_SEGGER_RTT

source/main.h

Committer:
jurica238814
Date:
2018-03-06
Revision:
0:ad937152493a

File content as of revision 0:ad937152493a:

/*
 *
 *
 */

#ifndef MAIN_H
#define MAIN_H

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

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

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

Thread bleT;

#if DEBUG_LED
    DigitalOut advLed(p22);
#endif

#endif // MAIN_H