Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debug.c 565B

123456789101112131415161718192021222324
  1. #include <stdbool.h>
  2. #include "debug.h"
  3. #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
  4. debug_config_t debug_config = {
  5. /* GCC Bug 10676 - Using unnamed fields in initializers
  6. * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 */
  7. #if GCC_VERSION >= 40600
  8. .enable = false,
  9. .matrix = false,
  10. .keyboard = false,
  11. .mouse = false,
  12. .reserved = 0
  13. #else
  14. {
  15. false, // .enable
  16. false, // .matrix
  17. false, // .keyboard
  18. false, // .mouse
  19. 0 // .reserved
  20. }
  21. #endif
  22. };