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.

bootmagic.h 907B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef BOOTMAGIC_H
  2. #define BOOTMAGIC_H
  3. #ifndef BOOTMAGIC_IS_ENABLE
  4. #define BOOTMAGIC_IS_ENABLE() true
  5. #endif
  6. /* bootloader */
  7. #ifndef BOOTMAGIC_BOOTLOADER_KEY
  8. #define BOOTMAGIC_BOOTLOADER_KEY KC_B
  9. #endif
  10. /* debug enable */
  11. #ifndef BOOTMAGIC_DEBUG_ENABLE_KEY
  12. #define BOOTMAGIC_DEBUG_ENABLE_KEY KC_D
  13. #endif
  14. /* eeprom clear */
  15. #ifndef BOOTMAGIC_EEPROM_CLEAR_KEY
  16. #define BOOTMAGIC_EEPROM_CLEAR_KEY KC_BSPACE
  17. #endif
  18. /* change default layer */
  19. #ifndef BOOTMAGIC_DEFAULT_LAYER_0_KEY
  20. #define BOOTMAGIC_DEFAULT_LAYER_0_KEY KC_0
  21. #endif
  22. #ifndef BOOTMAGIC_DEFAULT_LAYER_1_KEY
  23. #define BOOTMAGIC_DEFAULT_LAYER_1_KEY KC_1
  24. #endif
  25. #ifndef BOOTMAGIC_DEFAULT_LAYER_2_KEY
  26. #define BOOTMAGIC_DEFAULT_LAYER_2_KEY KC_2
  27. #endif
  28. #ifndef BOOTMAGIC_DEFAULT_LAYER_3_KEY
  29. #define BOOTMAGIC_DEFAULT_LAYER_3_KEY KC_3
  30. #endif
  31. void bootmagic(void);
  32. bool bootmagic_scan_keycode(uint8_t keycode);
  33. #endif