mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-20 22:20:55 +00:00
Merge pull request #2527 from tannewt/idf5.2.1
Tweaks for ESP-IDF 5.2.1
This commit is contained in:
commit
60764de564
@ -31,16 +31,26 @@
|
|||||||
#if (((CFG_TUSB_MCU == OPT_MCU_ESP32S2) || (CFG_TUSB_MCU == OPT_MCU_ESP32S3)) && CFG_TUD_ENABLED)
|
#if (((CFG_TUSB_MCU == OPT_MCU_ESP32S2) || (CFG_TUSB_MCU == OPT_MCU_ESP32S3)) && CFG_TUD_ENABLED)
|
||||||
|
|
||||||
// Espressif
|
// Espressif
|
||||||
#include "freertos/xtensa_api.h"
|
#include "xtensa_api.h"
|
||||||
#include "esp_intr_alloc.h"
|
#include "esp_intr_alloc.h"
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
#include "soc/dport_reg.h"
|
#include "soc/dport_reg.h"
|
||||||
#include "soc/gpio_sig_map.h"
|
#include "soc/gpio_sig_map.h"
|
||||||
#include "soc/usb_periph.h"
|
#include "soc/usb_periph.h"
|
||||||
|
#include "soc/usb_reg.h"
|
||||||
|
#include "soc/usb_struct.h"
|
||||||
#include "soc/periph_defs.h" // for interrupt source
|
#include "soc/periph_defs.h" // for interrupt source
|
||||||
|
|
||||||
#include "device/dcd.h"
|
#include "device/dcd.h"
|
||||||
|
|
||||||
|
#ifndef USB_OUT_EP_NUM
|
||||||
|
#define USB_OUT_EP_NUM ((int) (sizeof(USB0.out_ep_reg) / sizeof(USB0.out_ep_reg[0])))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef USB_IN_EP_NUM
|
||||||
|
#define USB_IN_EP_NUM ((int) (sizeof(USB0.in_ep_reg) / sizeof(USB0.in_ep_reg[0])))
|
||||||
|
#endif
|
||||||
|
|
||||||
// Max number of bi-directional endpoints including EP0
|
// Max number of bi-directional endpoints including EP0
|
||||||
// Note: ESP32S2 specs say there are only up to 5 IN active endpoints include EP0
|
// Note: ESP32S2 specs say there are only up to 5 IN active endpoints include EP0
|
||||||
// We should probably prohibit enabling Endpoint IN > 4 (not done yet)
|
// We should probably prohibit enabling Endpoint IN > 4 (not done yet)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user