We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8525e08 commit 39dca86Copy full SHA for 39dca86
bsp/nxp/imx/imxrt/libraries/drivers/usb/include/usb_device_config.h
@@ -176,10 +176,10 @@
176
/* @} */
177
/*! @brief rt-thread port alloc */
178
#include <rtthread.h>
179
-#define USB_OSA_SR_ALLOC(...)
+#define USB_OSA_SR_ALLOC(...) rt_base_t level
180
/*! @brief rt-thread port enter critical */
181
-#define USB_OSA_ENTER_CRITICAL rt_enter_critical
+#define USB_OSA_ENTER_CRITICAL() level = rt_hw_interrupt_disable()
182
/*! @brief rt-thread port exit critical */
183
-#define USB_OSA_EXIT_CRITICAL rt_exit_critical
+#define USB_OSA_EXIT_CRITICAL() rt_hw_interrupt_enable(level)
184
185
#endif /* _USB_DEVICE_CONFIG_H_ */
0 commit comments