ble nano hid over gatt
Dependencies: BLE_API mbed-dev nRF51822
config.h@60:b899414e1d34, 2016-08-31 (annotated)
- Committer:
- cho45
- Date:
- Wed Aug 31 13:44:47 2016 +0000
- Revision:
- 60:b899414e1d34
- Parent:
- 59:2d6c0bff2151
- Child:
- 61:17e9a3afc4f4
??????????
Who changed what in which revision?
User | Revision | Line number | New 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 | 54:899fc2b0a76b | 7 | #define DEBUG 1 |
cho45 | 60:b899414e1d34 | 8 | #define DEBUG_KEYEVENT 0 |
cho45 | 54:899fc2b0a76b | 9 | #define DEBUG_BLE 1 |
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 |