diff options
| author | XBurst <[email protected]> | 2018-12-26 00:13:14 +0800 |
|---|---|---|
| committer | XBurst <[email protected]> | 2018-12-26 00:13:14 +0800 |
| commit | 9fae4ccef2035c27e34a3eed81de69bc3b7431d6 (patch) | |
| tree | 35fc611c1b5f9ec5b7a5397e12f9dc980592626e | |
| parent | fefbea7b7e433e5256aa03c59ab3259415fefc36 (diff) | |
Add GPIO function pins select for UART2.
| -rwxr-xr-x[-rw-r--r--] | bsp/x1000/drivers/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bsp/x1000/drivers/Kconfig b/bsp/x1000/drivers/Kconfig index 0f2a2be685..9eed79acc6 100644..100755 --- a/bsp/x1000/drivers/Kconfig +++ b/bsp/x1000/drivers/Kconfig @@ -30,6 +30,19 @@ if RT_USING_SERIAL config RT_USING_UART2 bool "Using UART2" default y + + if RT_USING_UART2 + choice + prompt "GPIO function pins select" + default CONFIG_SYS_UART2_PC + + config CONFIG_SYS_UART2_PC + bool "PORT C" + + config CONFIG_SYS_UART2_PD + bool "PORT D" + endchoice + endif endif if RT_USING_SDIO |
