mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-15 20:01:54 -07:00
Update furi_hal_usb.c
This commit is contained in:
@@ -80,13 +80,10 @@ void furi_hal_usb_init(void) {
|
||||
NVIC_EnableIRQ(USB_LP_IRQn);
|
||||
NVIC_EnableIRQ(USB_HP_IRQn);
|
||||
|
||||
usb.queue = furi_message_queue_alloc(1, sizeof(UsbApiEventMessage));
|
||||
|
||||
usb.thread = furi_thread_alloc();
|
||||
furi_thread_set_name(usb.thread, "UsbDriver");
|
||||
furi_thread_set_stack_size(usb.thread, 1024);
|
||||
furi_thread_set_callback(usb.thread, furi_hal_usb_thread);
|
||||
furi_thread_mark_as_service(usb.thread);
|
||||
furi_thread_start(usb.thread);
|
||||
|
||||
FURI_LOG_I(TAG, "Init OK");
|
||||
|
||||
Reference in New Issue
Block a user