ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Committer:
cho45
Date:
Sat Aug 27 08:43:53 2016 +0000
Revision:
42:2c3be8694896
Child:
45:f4be69c936f6
?????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cho45 42:2c3be8694896 1 #ifndef __CONFIG_H__
cho45 42:2c3be8694896 2 #define __CONFIG_H__
cho45 42:2c3be8694896 3
cho45 42:2c3be8694896 4 #include "RawSerial.h"
cho45 42:2c3be8694896 5 extern RawSerial serial;
cho45 42:2c3be8694896 6
cho45 42:2c3be8694896 7 #define DEBUG 0
cho45 42:2c3be8694896 8 #define DEBUG_KEYEVENT 0
cho45 42:2c3be8694896 9 #define DEBUG_BLE 0
cho45 42:2c3be8694896 10 #define DEBUG_BLE_INTERRUPT 0
cho45 42:2c3be8694896 11
cho45 42:2c3be8694896 12 #if DEBUG_KEYEVENT
cho45 42:2c3be8694896 13 #define DEBUG_PRINTF_KEYEVENT(...) serial.printf(__VA_ARGS__)
cho45 42:2c3be8694896 14 #else
cho45 42:2c3be8694896 15 #define DEBUG_PRINTF_KEYEVENT(...)
cho45 42:2c3be8694896 16 #endif
cho45 42:2c3be8694896 17
cho45 42:2c3be8694896 18 #if DEBUG_BLE
cho45 42:2c3be8694896 19 #define DEBUG_PRINTF_BLE(...) serial.printf(__VA_ARGS__)
cho45 42:2c3be8694896 20 #else
cho45 42:2c3be8694896 21 #define DEBUG_PRINTF_BLE(...)
cho45 42:2c3be8694896 22 #endif
cho45 42:2c3be8694896 23
cho45 42:2c3be8694896 24 #if DEBUG_BLE_INTERRUPT
cho45 42:2c3be8694896 25 #define DEBUG_PRINTF_BLE_INTERRUPT(...) serial.printf(__VA_ARGS__)
cho45 42:2c3be8694896 26 #else
cho45 42:2c3be8694896 27 #define DEBUG_PRINTF_BLE_INTERRUPT(...)
cho45 42:2c3be8694896 28 #endif
cho45 42:2c3be8694896 29
cho45 42:2c3be8694896 30 // Generic DEBUG_PRINTF must not used at any interrupt
cho45 42:2c3be8694896 31 #if DEBUG
cho45 42:2c3be8694896 32 #define DEBUG_PRINTF(...) serial.printf(__VA_ARGS__)
cho45 42:2c3be8694896 33 #else
cho45 42:2c3be8694896 34 #define DEBUG_PRINTF(...)
cho45 42:2c3be8694896 35 #endif
cho45 42:2c3be8694896 36
cho45 42:2c3be8694896 37 #endif