summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharlown <[email protected]>2021-09-07 16:11:07 +0800
committercharlown <[email protected]>2021-09-07 16:11:07 +0800
commit7aa4dfec8b1cc2a9ec5754555fe77babb235416f (patch)
treeb137d4b763aad62a0ba8342bd3667636756f5e24
parentf6edb4754b80479e4e2466f1a8dea28b2901054e (diff)
[wch/arm/ch32f103c8-core]:format board/Kconfig, format README.md.
-rw-r--r--bsp/wch/arm/ch32f103c8-core/README.md4
-rw-r--r--bsp/wch/arm/ch32f103c8-core/board/Kconfig122
2 files changed, 60 insertions, 66 deletions
diff --git a/bsp/wch/arm/ch32f103c8-core/README.md b/bsp/wch/arm/ch32f103c8-core/README.md
index d1c7154f81..6fb188e0f3 100644
--- a/bsp/wch/arm/ch32f103c8-core/README.md
+++ b/bsp/wch/arm/ch32f103c8-core/README.md
@@ -1,9 +1,5 @@
# ch32f103c8 BSP 说明
-
## 简介
-
-
-
| 硬件 | 描述 |
| --------- | ------------- |
| 芯片型号 | ch32f103c8 |
diff --git a/bsp/wch/arm/ch32f103c8-core/board/Kconfig b/bsp/wch/arm/ch32f103c8-core/board/Kconfig
index 61600fc101..2bea1a66b5 100644
--- a/bsp/wch/arm/ch32f103c8-core/board/Kconfig
+++ b/bsp/wch/arm/ch32f103c8-core/board/Kconfig
@@ -1,91 +1,89 @@
menu "Hardware Drivers Config"
-config SOC_ARM_SERIES_CH32F103
- bool
- select RT_USING_COMPONENTS_INIT
- select RT_USING_USER_MAIN
- default y
+config SOC_CH32F103C8
+ bool
+ select SOC_ARM_SERIES_CH32F103
+ select RT_USING_COMPONENTS_INIT
+ select RT_USING_USER_MAIN
+ default y
menu "On-chip Peripheral Drivers"
-
config BSP_USING_UART
- bool "using onchip usart"
- select RT_USING_SERIAL
- default n
+ bool "using onchip usart"
+ select RT_USING_SERIAL
+ default n
- if BSP_USING_UART
- config BSP_USING_UART1
- bool "using uart1"
- default n
-
- config BSP_USING_UART2
- bool "using uart2"
- default n
+ if BSP_USING_UART
+ config BSP_USING_UART1
+ bool "using uart1"
+ default n
- config BSP_USING_UART3
- bool "using uart3"
- default n
- endif
+ config BSP_USING_UART2
+ bool "using uart2"
+ default n
+ config BSP_USING_UART3
+ bool "using uart3"
+ default n
+ endif
+
config BSP_USING_SPI
- bool "using onchip spi"
- select RT_USING_SPI
- default n
-
- if BSP_USING_SPI
+ bool "using onchip spi"
+ select RT_USING_SPI
+ default n
- config BSP_USING_SPI1
- bool "using spi1"
- default n
-
- config BSP_USING_SPI2
- bool "using spi2"
- default n
- endif
+ if BSP_USING_SPI
+ config BSP_USING_SPI1
+ bool "using spi1"
+ default n
+ config BSP_USING_SPI2
+ bool "using spi2"
+ default n
+ endif
+
config BSP_USING_HWI2C
- bool "using onchip i2c"
- select RT_USING_I2C
- default n
+ bool "using onchip i2c"
+ select RT_USING_I2C
+ default n
- if BSP_USING_HWI2C
-
- config BSP_USING_HWI2C1
- bool "using i2c1"
- default n
+ if BSP_USING_HWI2C
+ config BSP_USING_HWI2C1
+ bool "using i2c1"
+ default n
- config BSP_USING_HWI2C2
- bool "using i2c2"
- default n
- endif
+ config BSP_USING_HWI2C2
+ bool "using i2c2"
+ default n
+ endif
config BSP_USING_IWDT
- bool "using onchip iwdt"
- select RT_USING_WDT
- select LSI_VALUE
- default n
+ bool "using onchip iwdt"
+ select RT_USING_WDT
+ select LSI_VALUE
+ default n
config BSP_USING_RTC
- bool "using onchip rtc"
- select RT_USING_RTC
- default n
+ bool "using onchip rtc"
+ select RT_USING_RTC
+ default n
- if BSP_USING_RTC
- config BSP_USING_RTC_LSI
- bool "using LSI clock for rtc, if not, LSE default"
- select LSI_VALUE
- default n
- endif
+ if BSP_USING_RTC
+ config BSP_USING_RTC_LSI
+ bool "using LSI clock for rtc, if not, LSE default"
+ select LSI_VALUE
+ default n
+ endif
config LSI_VALUE
- int
- default 40000
+ int
+ default 40000
endmenu
menu "Onboard Peripheral Drivers"
-
+
endmenu
menu "Board extended module Drivers"