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.

102 lines
2.5 KiB

  1. #ifndef BOOTMAGIC_H
  2. #define BOOTMAGIC_H
  3. /* FIXME: Add special doxygen comments for defines here. */
  4. /* bootmagic salt key */
  5. #ifndef BOOTMAGIC_KEY_SALT
  6. #define BOOTMAGIC_KEY_SALT KC_SPACE
  7. #endif
  8. /* skip bootmagic and eeconfig */
  9. #ifndef BOOTMAGIC_KEY_SKIP
  10. #define BOOTMAGIC_KEY_SKIP KC_ESC
  11. #endif
  12. /* eeprom clear */
  13. #ifndef BOOTMAGIC_KEY_EEPROM_CLEAR
  14. #define BOOTMAGIC_KEY_EEPROM_CLEAR KC_BSPACE
  15. #endif
  16. /* kick up bootloader */
  17. #ifndef BOOTMAGIC_KEY_BOOTLOADER
  18. #define BOOTMAGIC_KEY_BOOTLOADER KC_B
  19. #endif
  20. /* debug enable */
  21. #ifndef BOOTMAGIC_KEY_DEBUG_ENABLE
  22. #define BOOTMAGIC_KEY_DEBUG_ENABLE KC_D
  23. #endif
  24. #ifndef BOOTMAGIC_KEY_DEBUG_MATRIX
  25. #define BOOTMAGIC_KEY_DEBUG_MATRIX KC_X
  26. #endif
  27. #ifndef BOOTMAGIC_KEY_DEBUG_KEYBOARD
  28. #define BOOTMAGIC_KEY_DEBUG_KEYBOARD KC_K
  29. #endif
  30. #ifndef BOOTMAGIC_KEY_DEBUG_MOUSE
  31. #define BOOTMAGIC_KEY_DEBUG_MOUSE KC_M
  32. #endif
  33. /*
  34. * keymap config
  35. */
  36. #ifndef BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK
  37. #define BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK KC_LCTRL
  38. #endif
  39. #ifndef BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL
  40. #define BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL KC_CAPSLOCK
  41. #endif
  42. #ifndef BOOTMAGIC_KEY_SWAP_LALT_LGUI
  43. #define BOOTMAGIC_KEY_SWAP_LALT_LGUI KC_LALT
  44. #endif
  45. #ifndef BOOTMAGIC_KEY_SWAP_RALT_RGUI
  46. #define BOOTMAGIC_KEY_SWAP_RALT_RGUI KC_RALT
  47. #endif
  48. #ifndef BOOTMAGIC_KEY_NO_GUI
  49. #define BOOTMAGIC_KEY_NO_GUI KC_LGUI
  50. #endif
  51. #ifndef BOOTMAGIC_KEY_SWAP_GRAVE_ESC
  52. #define BOOTMAGIC_KEY_SWAP_GRAVE_ESC KC_GRAVE
  53. #endif
  54. #ifndef BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE
  55. #define BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE KC_BSLASH
  56. #endif
  57. #ifndef BOOTMAGIC_HOST_NKRO
  58. #define BOOTMAGIC_HOST_NKRO KC_N
  59. #endif
  60. /*
  61. * change default layer
  62. */
  63. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_0
  64. #define BOOTMAGIC_KEY_DEFAULT_LAYER_0 KC_0
  65. #endif
  66. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_1
  67. #define BOOTMAGIC_KEY_DEFAULT_LAYER_1 KC_1
  68. #endif
  69. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_2
  70. #define BOOTMAGIC_KEY_DEFAULT_LAYER_2 KC_2
  71. #endif
  72. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_3
  73. #define BOOTMAGIC_KEY_DEFAULT_LAYER_3 KC_3
  74. #endif
  75. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_4
  76. #define BOOTMAGIC_KEY_DEFAULT_LAYER_4 KC_4
  77. #endif
  78. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_5
  79. #define BOOTMAGIC_KEY_DEFAULT_LAYER_5 KC_5
  80. #endif
  81. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_6
  82. #define BOOTMAGIC_KEY_DEFAULT_LAYER_6 KC_6
  83. #endif
  84. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_7
  85. #define BOOTMAGIC_KEY_DEFAULT_LAYER_7 KC_7
  86. #endif
  87. void bootmagic(void);
  88. bool bootmagic_scan_keycode(uint8_t keycode);
  89. #endif