Keyboard firmwares for Atmel AVR and Cortex-M
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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