Revert to old init order for host driver (#15029)

* Partially revert 14888
This commit is contained in:
Joel Challis 2021-11-02 18:53:46 +00:00 committed by GitHub
parent 0ecd4926b2
commit 634e42b2b4
Failed to generate hash of commit
4 changed files with 21 additions and 11 deletions

View file

@ -140,7 +140,7 @@ void protocol_setup(void) {
// chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
}
void protocol_init(void) {
void protocol_pre_init(void) {
/* Init USB */
usb_event_queue_init();
init_usb_driver(&USB_DRIVER);
@ -173,10 +173,10 @@ void protocol_init(void) {
wait_ms(50);
print("USB configured.\n");
host_set_driver(driver);
}
void protocol_post_init(void) { host_set_driver(driver); }
void protocol_pre_task(void) {
usb_event_queue_task();