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.h 424B

12345678910111213141516171819
  1. #ifndef DEBUG_H
  2. #define DEBUG_H 1
  3. #include "print.h"
  4. #define debug(s) if(debug_enable) print(s)
  5. #define debug_hex(c) if(debug_enable) phex(c)
  6. #define debug_hex16(i) if(debug_enable) phex16(i)
  7. #define debug_bin(c) if(debug_enable) pbin(c)
  8. #define debug_bin_reverse(c) if(debug_enable) pbin_reverse(c)
  9. bool debug_enable;
  10. bool debug_matrix;
  11. bool debug_keyboard;
  12. bool debug_mouse;
  13. #endif