diff options
author | Joel Challis <git@zvecr.com> | 2021-10-24 20:39:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 20:39:41 +0100 |
commit | 2ec268bd21c6bb8d6afbd4908fb0289b0d1c6bd2 (patch) | |
tree | 48614655e9276d59038359339ebb33e8623b3a38 /tmk_core/protocol/chibios | |
parent | c3c562cbb698347f76977a9176d281594e8c77a3 (diff) | |
download | qmk_firmware-2ec268bd21c6bb8d6afbd4908fb0289b0d1c6bd2.tar.gz qmk_firmware-2ec268bd21c6bb8d6afbd4908fb0289b0d1c6bd2.zip |
Begin to carve out platform/protocol API - Migrate keyboard_* calls (#14888)
Diffstat (limited to 'tmk_core/protocol/chibios')
-rw-r--r-- | tmk_core/protocol/chibios/chibios.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tmk_core/protocol/chibios/chibios.c b/tmk_core/protocol/chibios/chibios.c index c860328c8..98b330508 100644 --- a/tmk_core/protocol/chibios/chibios.c +++ b/tmk_core/protocol/chibios/chibios.c | |||
@@ -138,8 +138,6 @@ void protocol_setup(void) { | |||
138 | 138 | ||
139 | // TESTING | 139 | // TESTING |
140 | // chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); | 140 | // chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); |
141 | |||
142 | keyboard_setup(); | ||
143 | } | 141 | } |
144 | 142 | ||
145 | void protocol_init(void) { | 143 | void protocol_init(void) { |
@@ -176,18 +174,10 @@ void protocol_init(void) { | |||
176 | 174 | ||
177 | print("USB configured.\n"); | 175 | print("USB configured.\n"); |
178 | 176 | ||
179 | /* init TMK modules */ | ||
180 | keyboard_init(); | ||
181 | host_set_driver(driver); | 177 | host_set_driver(driver); |
182 | |||
183 | #ifdef SLEEP_LED_ENABLE | ||
184 | sleep_led_init(); | ||
185 | #endif | ||
186 | |||
187 | print("Keyboard start.\n"); | ||
188 | } | 178 | } |
189 | 179 | ||
190 | void protocol_task(void) { | 180 | void protocol_pre_task(void) { |
191 | usb_event_queue_task(); | 181 | usb_event_queue_task(); |
192 | 182 | ||
193 | #if !defined(NO_USB_STARTUP_CHECK) | 183 | #if !defined(NO_USB_STARTUP_CHECK) |
@@ -210,8 +200,9 @@ void protocol_task(void) { | |||
210 | # endif /* MOUSEKEY_ENABLE */ | 200 | # endif /* MOUSEKEY_ENABLE */ |
211 | } | 201 | } |
212 | #endif | 202 | #endif |
203 | } | ||
213 | 204 | ||
214 | keyboard_task(); | 205 | void protocol_post_task(void) { |
215 | #ifdef CONSOLE_ENABLE | 206 | #ifdef CONSOLE_ENABLE |
216 | console_task(); | 207 | console_task(); |
217 | #endif | 208 | #endif |