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.

59 lines
1.3 KiB

  1. #pragma once
  2. #include QMK_KEYBOARD_H
  3. #include "version.h"
  4. #include "eeprom.h"
  5. #include "wrappers.h"
  6. #include "process_records.h"
  7. #if defined(TAP_DANCE_ENABLE)
  8. # include "tap_dances.h"
  9. #endif // TAP_DANCE_ENABLE
  10. #if defined(RGB_MATRIX_ENABLE)
  11. # include "rgb_matrix_user.h"
  12. #endif
  13. #if defined(RGBLIGHT_ENABLE)
  14. # include "rgb_lighting_user.h"
  15. #endif
  16. #if defined(KEYBOARD_lily58_rev1) & defined(PROTOCOL_LUFA)
  17. # include "lufa.h"
  18. # include "split_util.h"
  19. #endif
  20. /* Define layer names */
  21. enum userspace_layers {
  22. _QWERTY = 0,
  23. _COLEMAK,
  24. _DVORAK,
  25. _WORKMAN,
  26. _MODS,
  27. _LOWER,
  28. _RAISE,
  29. _ADJUST,
  30. };
  31. void matrix_init_keymap(void);
  32. void shutdown_keymap(void);
  33. void suspend_power_down_keymap(void);
  34. void suspend_wakeup_init_keymap(void);
  35. void matrix_scan_keymap(void);
  36. layer_state_t layer_state_set_keymap(layer_state_t state);
  37. layer_state_t default_layer_state_set_keymap(layer_state_t state);
  38. void led_set_keymap(uint8_t usb_led);
  39. void eeconfig_init_keymap(void);
  40. // clang-format off
  41. typedef union {
  42. uint32_t raw;
  43. struct {
  44. bool rgb_layer_change :1;
  45. bool nuke_switch :1;
  46. bool rgb_matrix_idle_anim :1;
  47. };
  48. } userspace_config_t;
  49. // clang-format on
  50. extern userspace_config_t userspace_config;