mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -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
035d5d17cf
commit
a51813d9d9
@ -823,9 +823,9 @@ config SOC_SPIRAM_XIP_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
|
||||
|
@ -352,8 +352,7 @@
|
||||
#define SOC_SPIRAM_XIP_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,
|
||||
|
@ -975,9 +975,9 @@ config SOC_UART_SUPPORT_XTAL_CLK
|
||||
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
|
||||
|
@ -386,7 +386,7 @@
|
||||
#define SOC_UART_SUPPORT_XTAL_CLK (1) /*!< Support XTAL clock as the clock source */
|
||||
|
||||
/*-------------------------- 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,
|
||||
|
@ -360,4 +360,4 @@ examples/peripherals/uart/uart_echo_rs485:
|
||||
|
||||
examples/peripherals/usb:
|
||||
disable:
|
||||
- if: SOC_USB_PERIPH_NUM != 1
|
||||
- if: SOC_USB_OTG_SUPPORTED != 1
|
||||
|
@ -24,7 +24,7 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user