BLE HID keyboard with gesture
Dependencies: BLE_API BLE_HID PAJ7620U2 mbed nRF51822
debug.h
00001 #ifndef __DEBUG_H__ 00002 #define __DEBUG_H__ 00003 00004 #include "Serial.h" 00005 00006 00007 #define ENABLE_LOG 1 00008 #define ENABLE_ASSERT 1 00009 00010 extern Serial dbg; 00011 00012 00013 #if ENABLE_LOG 00014 #define log(...) dbg.printf(__VA_ARGS__) 00015 #else 00016 #define log(...) 00017 #endif 00018 00019 #if ENABLE_ASSERT 00020 #define assert(expr) { \ 00021 if (!(expr)) { \ 00022 dbg.printf("ASSERT: %s, file %s, line %d\n", #expr, __FILE__, __LINE__); \ 00023 while(1); \ 00024 } \ 00025 } 00026 #else 00027 #define assert(expr) 00028 #endif 00029 00030 00031 #endif 00032
Generated on Thu Jul 14 2022 21:52:50 by 1.7.2