forked from mirrors/qmk_userspace
Begin to carve out platform/protocol API - Migrate keyboard_* calls (#14888)
This commit is contained in:
parent
c3c562cbb6
commit
2ec268bd21
5 changed files with 27 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue