Merge pull request #2119 from XBurst/master

Add GPIO function pins select for UART2.
This commit is contained in:
Bernard Xiong 2018-12-26 06:28:27 +08:00 committed by GitHub
commit fda0fcb67f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
bsp/x1000/drivers/Kconfig Normal file → Executable file
View File

@ -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