mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
refactor(soc): SOC_USB_PERIPH_NUM option
This commit refactors SOC_USB_PERIPH_NUM as follows: - Renamed to SOC_USB_OTG_PERIPH_NUM to avoid confusion with USB Serial JTAG - Updated to unsigned integer "1U" - Updated some build rules to depend on SOC_USB_OTG_SUPPORTED instead
This commit is contained in:
parent
32160c7b74
commit
ec2ba71f97
@ -719,9 +719,9 @@ config SOC_SPIRAM_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_USB_PERIPH_NUM
|
||||
bool
|
||||
default y
|
||||
config SOC_USB_OTG_PERIPH_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_SHA_DMA_MAX_BUFFER_SIZE
|
||||
int
|
||||
|
@ -320,8 +320,7 @@
|
||||
#define SOC_SPIRAM_SUPPORTED 1
|
||||
|
||||
/*-------------------------- USB CAPS ----------------------------------------*/
|
||||
#define SOC_USB_PERIPH_NUM 1
|
||||
|
||||
#define SOC_USB_OTG_PERIPH_NUM (1U)
|
||||
|
||||
/*--------------------------- SHA CAPS ---------------------------------------*/
|
||||
/* Max amount of bytes in a single DMA operation is 4095,
|
||||
|
@ -815,9 +815,9 @@ config SOC_UART_REQUIRE_CORE_RESET
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_USB_PERIPH_NUM
|
||||
bool
|
||||
default y
|
||||
config SOC_USB_OTG_PERIPH_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_SHA_DMA_MAX_BUFFER_SIZE
|
||||
int
|
||||
|
@ -333,7 +333,7 @@
|
||||
#define SOC_UART_REQUIRE_CORE_RESET (1)
|
||||
|
||||
/*-------------------------- USB CAPS ----------------------------------------*/
|
||||
#define SOC_USB_PERIPH_NUM 1
|
||||
#define SOC_USB_OTG_PERIPH_NUM (1U)
|
||||
|
||||
|
||||
/*--------------------------- SHA CAPS ---------------------------------------*/
|
||||
|
@ -191,7 +191,7 @@ examples/peripherals/uart/uart_echo_rs485:
|
||||
|
||||
examples/peripherals/usb:
|
||||
disable:
|
||||
- if: SOC_USB_PERIPH_NUM != 1
|
||||
- if: SOC_USB_OTG_SUPPORTED != 1
|
||||
|
||||
examples/peripherals/wave_gen:
|
||||
enable:
|
||||
|
@ -22,7 +22,10 @@ examples/system/console/advanced:
|
||||
|
||||
examples/system/console/advanced_usb_cdc:
|
||||
disable:
|
||||
- if: SOC_USB_PERIPH_NUM == 0
|
||||
- if: SOC_USB_OTG_SUPPORTED != 1
|
||||
depends_components:
|
||||
- console
|
||||
- vfs
|
||||
|
||||
examples/system/console/basic:
|
||||
disable:
|
||||
|
Loading…
x
Reference in New Issue
Block a user