curry.h 1.4 KB

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