X-Git-Url: https://git.donarmstrong.com/?p=tmk_firmware.git;a=blobdiff_plain;f=common%2Fdebug.c;fp=common%2Fdebug.c;h=18613fc28bdd532fafb3d9b1b514a9b2bc6414b2;hp=0000000000000000000000000000000000000000;hb=c5d3988e7ace6a7c940f543ab2539be8ef15bd7d;hpb=0c95282d3d6d1d9158a8b29b25b96609869adb0c diff --git a/common/debug.c b/common/debug.c new file mode 100644 index 0000000..18613fc --- /dev/null +++ b/common/debug.c @@ -0,0 +1,24 @@ +#include +#include "debug.h" + +#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) + +debug_config_t debug_config = { +/* GCC Bug 10676 - Using unnamed fields in initializers + * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 */ +#if GCC_VERSION >= 40600 + .enable = false, + .matrix = false, + .keyboard = false, + .mouse = false, + .reserved = 0 +#else + { + false, // .enable + false, // .matrix + false, // .keyboard + false, // .mouse + 0 // .reserved + } +#endif +};