bootmagic.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. #ifndef BOOTMAGIC_KEY_EE_HANDS_LEFT
  34. # define BOOTMAGIC_KEY_EE_HANDS_LEFT KC_L
  35. #endif
  36. #ifndef BOOTMAGIC_KEY_EE_HANDS_RIGHT
  37. # define BOOTMAGIC_KEY_EE_HANDS_RIGHT KC_R
  38. #endif
  39. /*
  40. * keymap config
  41. */
  42. #ifndef BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK
  43. # define BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK KC_LCTRL
  44. #endif
  45. #ifndef BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL
  46. # define BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL KC_CAPSLOCK
  47. #endif
  48. #ifndef BOOTMAGIC_KEY_SWAP_LALT_LGUI
  49. # define BOOTMAGIC_KEY_SWAP_LALT_LGUI KC_LALT
  50. #endif
  51. #ifndef BOOTMAGIC_KEY_SWAP_RALT_RGUI
  52. # define BOOTMAGIC_KEY_SWAP_RALT_RGUI KC_RALT
  53. #endif
  54. #ifndef BOOTMAGIC_KEY_NO_GUI
  55. # define BOOTMAGIC_KEY_NO_GUI KC_LGUI
  56. #endif
  57. #ifndef BOOTMAGIC_KEY_SWAP_GRAVE_ESC
  58. # define BOOTMAGIC_KEY_SWAP_GRAVE_ESC KC_GRAVE
  59. #endif
  60. #ifndef BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE
  61. # define BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE KC_BSLASH
  62. #endif
  63. #ifndef BOOTMAGIC_HOST_NKRO
  64. # define BOOTMAGIC_HOST_NKRO KC_N
  65. #endif
  66. /*
  67. * change default layer
  68. */
  69. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_0
  70. # define BOOTMAGIC_KEY_DEFAULT_LAYER_0 KC_0
  71. #endif
  72. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_1
  73. # define BOOTMAGIC_KEY_DEFAULT_LAYER_1 KC_1
  74. #endif
  75. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_2
  76. # define BOOTMAGIC_KEY_DEFAULT_LAYER_2 KC_2
  77. #endif
  78. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_3
  79. # define BOOTMAGIC_KEY_DEFAULT_LAYER_3 KC_3
  80. #endif
  81. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_4
  82. # define BOOTMAGIC_KEY_DEFAULT_LAYER_4 KC_4
  83. #endif
  84. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_5
  85. # define BOOTMAGIC_KEY_DEFAULT_LAYER_5 KC_5
  86. #endif
  87. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_6
  88. # define BOOTMAGIC_KEY_DEFAULT_LAYER_6 KC_6
  89. #endif
  90. #ifndef BOOTMAGIC_KEY_DEFAULT_LAYER_7
  91. # define BOOTMAGIC_KEY_DEFAULT_LAYER_7 KC_7
  92. #endif
  93. void bootmagic(void);
  94. bool bootmagic_scan_keycode(uint8_t keycode);
  95. #endif