stm32f072_usb_custom_hid: fix task_notify issue in isr
This commit is contained in:
parent
7f2a464bd2
commit
bd1dd0e9a9
@ -203,7 +203,11 @@ static void usbd_event_handler(uint8_t busid, uint8_t event)
|
||||
|
||||
static void usbd_hid_custom_in_callback(uint8_t busid, uint8_t ep, uint32_t nbytes)
|
||||
{
|
||||
xTaskNotifyGive(sender_task_handle);
|
||||
BaseType_t higher_task_woken = pdFALSE;
|
||||
|
||||
vTaskNotifyGiveFromISR(sender_task_handle, &higher_task_woken);
|
||||
|
||||
portYIELD_FROM_ISR(higher_task_woken);
|
||||
}
|
||||
|
||||
static void usbd_hid_custom_out_callback(uint8_t busid, uint8_t ep, uint32_t nbytes)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user