Begin to carve out platform/protocol API - Migrate keyboard_* calls (#14888)

This commit is contained in:
Joel Challis 2021-10-24 20:39:41 +01:00 committed by GitHub
parent c3c562cbb6
commit 2ec268bd21
Failed to generate hash of commit
5 changed files with 27 additions and 35 deletions

View file

@ -138,8 +138,6 @@ void protocol_setup(void) {
// TESTING
// chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
keyboard_setup();
}
void protocol_init(void) {
@ -176,18 +174,10 @@ void protocol_init(void) {
print("USB configured.\n");
/* init TMK modules */
keyboard_init();
host_set_driver(driver);
#ifdef SLEEP_LED_ENABLE
sleep_led_init();
#endif
print("Keyboard start.\n");
}
void protocol_task(void) {
void protocol_pre_task(void) {
usb_event_queue_task();
#if !defined(NO_USB_STARTUP_CHECK)
@ -210,8 +200,9 @@ void protocol_task(void) {
# endif /* MOUSEKEY_ENABLE */
}
#endif
}
keyboard_task();
void protocol_post_task(void) {
#ifdef CONSOLE_ENABLE
console_task();
#endif