mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
arch/arm/src/stm32/Kconfig: USB Host is an option.
This commit is contained in:
committed by
Gregory Nutt
parent
60575d3436
commit
fd68d74264
@@ -2602,22 +2602,16 @@ config STM32_RTC
|
|||||||
default n
|
default n
|
||||||
select RTC
|
select RTC
|
||||||
|
|
||||||
config STM32_USBHOST
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config STM32_OTGFS
|
config STM32_OTGFS
|
||||||
bool "OTG FS"
|
bool "OTG FS"
|
||||||
default n
|
default n
|
||||||
depends on STM32_HAVE_OTGFS
|
depends on STM32_HAVE_OTGFS
|
||||||
select STM32_USBHOST
|
|
||||||
select USBHOST_HAVE_ASYNCH if USBHOST
|
select USBHOST_HAVE_ASYNCH if USBHOST
|
||||||
|
|
||||||
config STM32_OTGHS
|
config STM32_OTGHS
|
||||||
bool "OTG HS"
|
bool "OTG HS"
|
||||||
default n
|
default n
|
||||||
depends on STM32_STM32F20XX || STM32_STM32F4XXX
|
depends on STM32_STM32F20XX || STM32_STM32F4XXX
|
||||||
select STM32_USBHOST
|
|
||||||
select USBHOST_HAVE_ASYNCH if USBHOST
|
select USBHOST_HAVE_ASYNCH if USBHOST
|
||||||
|
|
||||||
config STM32_PWR
|
config STM32_PWR
|
||||||
@@ -9190,8 +9184,13 @@ config STM32_ETHMAC_REGDEBUG
|
|||||||
|
|
||||||
endmenu # Ethernet MAC configuration
|
endmenu # Ethernet MAC configuration
|
||||||
|
|
||||||
|
config STM32_USBHOST
|
||||||
|
bool "Enable USB Host Support"
|
||||||
|
depends on STM32_OTGFS || STM32_OTGHS
|
||||||
|
default n
|
||||||
|
|
||||||
menu "USB FS Host Configuration"
|
menu "USB FS Host Configuration"
|
||||||
depends on STM32_OTGFS
|
depends on STM32_OTGFS && STM32_USBHOST
|
||||||
|
|
||||||
config STM32_OTGFS_RXFIFO_SIZE
|
config STM32_OTGFS_RXFIFO_SIZE
|
||||||
int "Rx Packet Size"
|
int "Rx Packet Size"
|
||||||
@@ -9234,7 +9233,7 @@ config STM32_OTGFS_VBUS_CONTROL
|
|||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "USB HS Host Configuration"
|
menu "USB HS Host Configuration"
|
||||||
depends on STM32_OTGHS
|
depends on STM32_OTGHS && STM32_USBHOST
|
||||||
|
|
||||||
config STM32_OTGHS_RXFIFO_SIZE
|
config STM32_OTGHS_RXFIFO_SIZE
|
||||||
int "Rx Packet Size"
|
int "Rx Packet Size"
|
||||||
|
|||||||
Reference in New Issue
Block a user