tinyusb/src/osal/osal_none.h
static inline void _osal_q_lock(osal_queue_t qhdl)
{
#if TUSB_OPT_DEVICE_ENABLED
  if (qhdl->role == OPT_MODE_DEVICE) dcd_int_disable(TUD_OPT_RHPORT);
#endif

#if TUSB_OPT_HOST_ENABLED
  if (qhdl->role == OPT_MODE_HOST) hcd_int_disable(TUH_OPT_RHPORT);
#endif
}
// lock queue by disable usb isr

lock queue by disable usb isr
lock queue by disable usb isr
static inline void _osal_q_lock(osal_queue_t qhdl)
{
#if TUSB_OPT_DEVICE_ENABLED
  if (qhdl->role == OPT_MODE_DEVICE) dcd_int_disable(TUD_OPT_RHPORT);
#endif
#if TUSB_OPT_HOST_ENABLED
  if (qhdl->role == OPT_MODE_HOST) hcd_int_disable(TUH_OPT_RHPORT);
#endif
}
static inline void _osal_q_lock ( osal_queue_t qhdl ) { #if TUSB_OPT_DEVICE_ENABLED if ( qhdl -> role == OPT_MODE_DEVICE ) dcd_int_disable ( TUD_OPT_RHPORT ) ; #endif #if TUSB_OPT_HOST_ENABLED if ( qhdl -> role == OPT_MODE_HOST ) hcd_int_disable ( TUH_OPT_RHPORT ) ; #endif }
lock queue by disable usb isr
lock queue by disable usb isr