4 // Add reconfigurable functions here, for keymap customization
5 // This allows for a global, userspace functions, and continued
6 // customization of the keymap. Use _keymap instead of _user
7 // functions in the keymaps
9 void matrix_init_keymap(void) {}
11 // Call user matrix init, then call the keymap's init function
12 void matrix_init_user(void) {
17 __attribute__ ((weak))
18 void matrix_scan_keymap(void) {}
20 // No global matrix scan code, so just run keymap's matix
22 void matrix_scan_user(void) {
27 __attribute__ ((weak))
28 bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
32 // Defines actions tor my global custom keycodes. Defined in drashna.h file
33 // Then runs the _keymap's recod handier if not processed here,
34 // And use "NEWPLACEHOLDER" for new safe range
35 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
39 if (!record->event.pressed) {
40 SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
41 #if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
43 #elif defined(BOOTLOADER_HALFKAY)
45 #elif defined(BOOTLOADER_CATERINA)
54 if (record->event.pressed) {
60 if (record->event.pressed) {
61 SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
66 return process_record_keymap(keycode, record);
70 __attribute__ ((weak))
71 uint32_t layer_state_set_keymap (uint32_t state) {
75 uint32_t layer_state_set_user (uint32_t state) {
76 return layer_state_set_keymap (state);
81 __attribute__ ((weak))
82 void led_set_keymap(uint8_t usb_led) {}
84 void led_set_user(uint8_t usb_led) {
85 led_set_keymap(usb_led);
90 __attribute__ ((weak))
91 void suspend_power_down_keymap(void) {}
93 void suspend_power_down_user(void)
95 suspend_power_down_keymap();
100 __attribute__ ((weak))
101 void suspend_wakeup_init_keymap(void) {}
103 void suspend_wakeup_init_user(void)
105 suspend_wakeup_init_keymap();
106 #ifdef KEYBOARD_ergodox_ez
113 __attribute__ ((weak))
114 void startup_keymap(void) {}
116 void startup_user (void) {
117 #ifdef RGBLIGHT_ENABLE
119 #endif //RGBLIGHT_ENABLE
125 __attribute__ ((weak))
126 void shutdown_keymap(void) {}
128 void shutdown_user (void) {