aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/drashna.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-10-25 22:08:49 -0700
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-10-28 08:44:58 -0700
commitd29a61e9ce39947cc2618c5d19d36f063bb0255b (patch)
treecdb71adb0b562a6c82ff503bfcc7d3cc0a75cbe5 /users/drashna/drashna.c
parentba7a1e89769049ba24de92e6538875803079a702 (diff)
downloadqmk_firmware-d29a61e9ce39947cc2618c5d19d36f063bb0255b.tar.gz
qmk_firmware-d29a61e9ce39947cc2618c5d19d36f063bb0255b.zip
Add Bootmagic Lite for now
Diffstat (limited to 'users/drashna/drashna.c')
-rw-r--r--users/drashna/drashna.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c
index 5b9957c3d..35fa15be4 100644
--- a/users/drashna/drashna.c
+++ b/users/drashna/drashna.c
@@ -81,6 +81,21 @@ bool mod_key_press (uint16_t code, uint16_t mod_code, bool pressed, uint16_t thi
81 return false; 81 return false;
82} 82}
83 83
84void bootmagic_lite(void) {
85 matrix_scan();
86 #if defined(DEBOUNCING_DELAY) && DEBOUNCING_DELAY > 0
87 wait_ms(DEBOUNCING_DELAY * 2);
88 #elif defined(DEBOUNCE) && DEBOUNCE > 0
89 wait_ms(DEBOUNCE * 2);
90 #else
91 wait_ms(30);
92 #endif
93 matrix_scan();
94 if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) {
95 bootloader_jump();
96 }
97}
98
84// Add reconfigurable functions here, for keymap customization 99// Add reconfigurable functions here, for keymap customization
85// This allows for a global, userspace functions, and continued 100// This allows for a global, userspace functions, and continued
86// customization of the keymap. Use _keymap instead of _user 101// customization of the keymap. Use _keymap instead of _user
@@ -133,6 +148,10 @@ void eeconfig_init_keymap(void) {}
133// Call user matrix init, set default RGB colors and then 148// Call user matrix init, set default RGB colors and then
134// call the keymap's init function 149// call the keymap's init function
135void matrix_init_user(void) { 150void matrix_init_user(void) {
151 #if !defined(BOOTMAGIC_LITE) && !defined(BOOTMAGIC_ENABLE)
152 bootmagic_lite();
153 #endif
154
136 userspace_config.raw = eeconfig_read_user(); 155 userspace_config.raw = eeconfig_read_user();
137 156
138#ifdef BOOTLOADER_CATERINA 157#ifdef BOOTLOADER_CATERINA