浏览代码

Merge pull request #2119 from XBurst/master

Add GPIO function pins select for UART2.
Bernard Xiong 6 年之前
父节点
当前提交
fda0fcb67f
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      bsp/x1000/drivers/Kconfig

+ 13 - 0
bsp/x1000/drivers/Kconfig

@@ -30,6 +30,19 @@ if RT_USING_SERIAL
     config RT_USING_UART2
     config RT_USING_UART2
         bool "Using UART2"
         bool "Using UART2"
         default y
         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
 endif
 
 
 if RT_USING_SDIO
 if RT_USING_SDIO