mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
stm32f7:Allow for reuse of the OTG_ID GPIO
This commit is contained in:
committed by
Anthony Merlino
parent
8624f9a444
commit
cd603af958
@@ -1734,6 +1734,19 @@ config STM32F7_SYSCFG_IOCOMPENSATION
|
||||
The I/O compensation cell can be used only when the supply voltage ranges
|
||||
from 2.4 to 3.6 V.
|
||||
|
||||
menu "OTG Configuration"
|
||||
depends on STM32F7_OTGFS
|
||||
|
||||
config OTG_ID_GPIO_DISABLE
|
||||
bool "Disable the use of GPIO_OTG_ID pin."
|
||||
default n
|
||||
---help---
|
||||
Disables/Enabled the use of GPIO_OTG_ID pin. This allows non OTG use
|
||||
cases to reuse this GPIO pin and ensure it is not set incorrectlty
|
||||
during OS boot.
|
||||
|
||||
endmenu
|
||||
|
||||
menu "U[S]ART Configuration"
|
||||
depends on STM32F7_USART
|
||||
|
||||
|
||||
@@ -5726,7 +5726,11 @@ void arm_usbinitialize(void)
|
||||
|
||||
stm32_configgpio(GPIO_OTG_DM);
|
||||
stm32_configgpio(GPIO_OTG_DP);
|
||||
stm32_configgpio(GPIO_OTG_ID); /* Only needed for OTG */
|
||||
|
||||
/* Only needed for OTG */
|
||||
# ifndef CONFIG_OTG_ID_GPIO_DISABLE
|
||||
stm32_configgpio(GPIO_OTG_ID);
|
||||
# endif
|
||||
|
||||
/* SOF output pin configuration is configurable. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user