ESP32-S2 specific peripheral configuration. More...
ESP32-S2 specific peripheral configuration.
Definition in file periph_cpu_esp32s2.h.
#include "sdkconfig.h"
Go to the source code of this file.
#define | CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ) |
Mapping configured ESP32-S2 default clock to CLOCK_CORECLOCK define. | |
#define | CPU_CYCLES_PER_LOOP (6) |
CPU cycles per busy wait loop. | |
USB device configuration | |
ESP32x SoCs have:
To avoid a lot of special case handling, the maximum number of IN an OUT endpoints including the control endpoint EP0 is 5. | |
#define | DWC2_USB_OTG_FS_ENABLED 1 |
Enable the USB OTG FS peripheral. | |
#define | DWC2_USB_OTG_FS_NUM_EP (5) |
Number of USB OTG FS IN endpoints including the control endpoint. | |
#define | DWC2_USB_OTG_FS_RX_FIFO_SIZE (128U) |
Size of the FIFO shared by all USB OTG FS OUT endpoints in 32-bit words. | |
#define | DWC2_USB_OTG_FS_TOTAL_FIFO_SIZE (1024U) |
Total size of the FIFO in bytes. | |
#define | USBDEV_CPU_DMA_ALIGNMENT (4) |
Buffers have to be word aligned for DMA. | |
#define | USBDEV_NUM_ENDPOINTS DWC2_USB_OTG_FS_NUM_EP |
Number of USB IN and OUT endpoints available. | |
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ) |
Mapping configured ESP32-S2 default clock to CLOCK_CORECLOCK define.
Definition at line 29 of file periph_cpu_esp32s2.h.
#define CPU_CYCLES_PER_LOOP (6) |
CPU cycles per busy wait loop.
Definition at line 34 of file periph_cpu_esp32s2.h.
#define DWC2_USB_OTG_FS_ENABLED 1 |
Enable the USB OTG FS peripheral.
At the moment, only FS is supported on ESP32x SoCs.
Definition at line 243 of file periph_cpu_esp32s2.h.
#define DWC2_USB_OTG_FS_NUM_EP (5) |
Number of USB OTG FS IN endpoints including the control endpoint.
Definition at line 248 of file periph_cpu_esp32s2.h.
#define DWC2_USB_OTG_FS_RX_FIFO_SIZE (128U) |
Size of the FIFO shared by all USB OTG FS OUT endpoints in 32-bit words.
Definition at line 254 of file periph_cpu_esp32s2.h.
#define DWC2_USB_OTG_FS_TOTAL_FIFO_SIZE (1024U) |
Total size of the FIFO in bytes.
Definition at line 260 of file periph_cpu_esp32s2.h.
Definition at line 40 of file periph_cpu_esp32s2.h.
Definition at line 41 of file periph_cpu_esp32s2.h.
Definition at line 50 of file periph_cpu_esp32s2.h.
Definition at line 51 of file periph_cpu_esp32s2.h.
Definition at line 52 of file periph_cpu_esp32s2.h.
Definition at line 53 of file periph_cpu_esp32s2.h.
Definition at line 54 of file periph_cpu_esp32s2.h.
Definition at line 55 of file periph_cpu_esp32s2.h.
Definition at line 56 of file periph_cpu_esp32s2.h.
Definition at line 57 of file periph_cpu_esp32s2.h.
Definition at line 58 of file periph_cpu_esp32s2.h.
Definition at line 59 of file periph_cpu_esp32s2.h.
Definition at line 42 of file periph_cpu_esp32s2.h.
Definition at line 60 of file periph_cpu_esp32s2.h.
Definition at line 61 of file periph_cpu_esp32s2.h.
Definition at line 63 of file periph_cpu_esp32s2.h.
Definition at line 64 of file periph_cpu_esp32s2.h.
Definition at line 65 of file periph_cpu_esp32s2.h.
Definition at line 66 of file periph_cpu_esp32s2.h.
Definition at line 43 of file periph_cpu_esp32s2.h.
Definition at line 67 of file periph_cpu_esp32s2.h.
Definition at line 68 of file periph_cpu_esp32s2.h.
Definition at line 69 of file periph_cpu_esp32s2.h.
Definition at line 70 of file periph_cpu_esp32s2.h.
Definition at line 71 of file periph_cpu_esp32s2.h.
Definition at line 72 of file periph_cpu_esp32s2.h.
Definition at line 73 of file periph_cpu_esp32s2.h.
Definition at line 74 of file periph_cpu_esp32s2.h.
Definition at line 75 of file periph_cpu_esp32s2.h.
Definition at line 76 of file periph_cpu_esp32s2.h.
Definition at line 44 of file periph_cpu_esp32s2.h.
Definition at line 77 of file periph_cpu_esp32s2.h.
Definition at line 78 of file periph_cpu_esp32s2.h.
Definition at line 79 of file periph_cpu_esp32s2.h.
Definition at line 80 of file periph_cpu_esp32s2.h.
Definition at line 81 of file periph_cpu_esp32s2.h.
Definition at line 82 of file periph_cpu_esp32s2.h.
Definition at line 83 of file periph_cpu_esp32s2.h.
Definition at line 45 of file periph_cpu_esp32s2.h.
Definition at line 46 of file periph_cpu_esp32s2.h.
Definition at line 47 of file periph_cpu_esp32s2.h.
Definition at line 48 of file periph_cpu_esp32s2.h.
Definition at line 49 of file periph_cpu_esp32s2.h.
#define USBDEV_CPU_DMA_ALIGNMENT (4) |
Buffers have to be word aligned for DMA.
Definition at line 265 of file periph_cpu_esp32s2.h.
#define USBDEV_NUM_ENDPOINTS DWC2_USB_OTG_FS_NUM_EP |
Number of USB IN and OUT endpoints available.
Definition at line 270 of file periph_cpu_esp32s2.h.