summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-06-21 21:45:33 +0800
committersakumisu <[email protected]>2022-06-21 21:45:33 +0800
commit859c2ee6aec5255d5b226a57a7123f1e7dd1233c (patch)
tree342affbc7ef502bc0632d2c36710fa10de956f8f
parent0bafea923be2142700eee76ffea1f46709e9e07d (diff)
modify section protect with global irq
-rw-r--r--osal/usb_osal_freertos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osal/usb_osal_freertos.c b/osal/usb_osal_freertos.c
index 4c190bef..4c4e929d 100644
--- a/osal/usb_osal_freertos.c
+++ b/osal/usb_osal_freertos.c
@@ -134,13 +134,13 @@ int usb_osal_event_send(usb_osal_event_t event, uint32_t set)
size_t usb_osal_enter_critical_section(void)
{
- taskENTER_CRITICAL();
+ taskDISABLE_INTERRUPTS();
return 1;
}
void usb_osal_leave_critical_section(size_t flag)
{
- taskEXIT_CRITICAL();
+ taskENABLE_INTERRUPTS();
}
void usb_osal_msleep(uint32_t delay)