add usbh_spin_lock/unlock() use spinlock instead of atomic flag for hcd max3421

This commit is contained in:
hathach
2025-05-21 15:27:18 +07:00
parent 3a042b37da
commit e41a63c60d
6 changed files with 129 additions and 17 deletions

View File

@@ -49,7 +49,9 @@ static led_strip_handle_t led_strip;
static void max3421_init(void);
#endif
#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3, OPT_MCU_ESP32P4)
static bool usb_init(void);
#endif
//--------------------------------------------------------------------+
// Implementation