[wch/arm/ch32f103c8-core]:format board/Kconfig, format README.md.
This commit is contained in:
parent
f6edb4754b
commit
7aa4dfec8b
|
@ -1,9 +1,5 @@
|
||||||
# ch32f103c8 BSP 说明
|
# ch32f103c8 BSP 说明
|
||||||
|
|
||||||
## 简介
|
## 简介
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
| 硬件 | 描述 |
|
| 硬件 | 描述 |
|
||||||
| --------- | ------------- |
|
| --------- | ------------- |
|
||||||
| 芯片型号 | ch32f103c8 |
|
| 芯片型号 | ch32f103c8 |
|
||||||
|
|
|
@ -1,91 +1,89 @@
|
||||||
menu "Hardware Drivers Config"
|
menu "Hardware Drivers Config"
|
||||||
|
|
||||||
config SOC_ARM_SERIES_CH32F103
|
config SOC_CH32F103C8
|
||||||
bool
|
bool
|
||||||
select RT_USING_COMPONENTS_INIT
|
select SOC_ARM_SERIES_CH32F103
|
||||||
select RT_USING_USER_MAIN
|
select RT_USING_COMPONENTS_INIT
|
||||||
default y
|
select RT_USING_USER_MAIN
|
||||||
|
default y
|
||||||
|
|
||||||
menu "On-chip Peripheral Drivers"
|
menu "On-chip Peripheral Drivers"
|
||||||
|
|
||||||
|
|
||||||
config BSP_USING_UART
|
config BSP_USING_UART
|
||||||
bool "using onchip usart"
|
bool "using onchip usart"
|
||||||
select RT_USING_SERIAL
|
select RT_USING_SERIAL
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if BSP_USING_UART
|
if BSP_USING_UART
|
||||||
config BSP_USING_UART1
|
config BSP_USING_UART1
|
||||||
bool "using uart1"
|
bool "using uart1"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_UART2
|
|
||||||
bool "using uart2"
|
|
||||||
default n
|
|
||||||
|
|
||||||
config BSP_USING_UART3
|
config BSP_USING_UART2
|
||||||
bool "using uart3"
|
bool "using uart2"
|
||||||
default n
|
default n
|
||||||
endif
|
|
||||||
|
|
||||||
|
config BSP_USING_UART3
|
||||||
|
bool "using uart3"
|
||||||
|
default n
|
||||||
|
endif
|
||||||
|
|
||||||
config BSP_USING_SPI
|
config BSP_USING_SPI
|
||||||
bool "using onchip spi"
|
bool "using onchip spi"
|
||||||
select RT_USING_SPI
|
select RT_USING_SPI
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if BSP_USING_SPI
|
if BSP_USING_SPI
|
||||||
|
config BSP_USING_SPI1
|
||||||
config BSP_USING_SPI1
|
bool "using spi1"
|
||||||
bool "using spi1"
|
default n
|
||||||
default n
|
|
||||||
|
|
||||||
config BSP_USING_SPI2
|
|
||||||
bool "using spi2"
|
|
||||||
default n
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
config BSP_USING_SPI2
|
||||||
|
bool "using spi2"
|
||||||
|
default n
|
||||||
|
endif
|
||||||
|
|
||||||
config BSP_USING_HWI2C
|
config BSP_USING_HWI2C
|
||||||
bool "using onchip i2c"
|
bool "using onchip i2c"
|
||||||
select RT_USING_I2C
|
select RT_USING_I2C
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if BSP_USING_HWI2C
|
if BSP_USING_HWI2C
|
||||||
|
config BSP_USING_HWI2C1
|
||||||
config BSP_USING_HWI2C1
|
bool "using i2c1"
|
||||||
bool "using i2c1"
|
default n
|
||||||
default n
|
|
||||||
|
|
||||||
config BSP_USING_HWI2C2
|
config BSP_USING_HWI2C2
|
||||||
bool "using i2c2"
|
bool "using i2c2"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config BSP_USING_IWDT
|
config BSP_USING_IWDT
|
||||||
bool "using onchip iwdt"
|
bool "using onchip iwdt"
|
||||||
select RT_USING_WDT
|
select RT_USING_WDT
|
||||||
select LSI_VALUE
|
select LSI_VALUE
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_RTC
|
config BSP_USING_RTC
|
||||||
bool "using onchip rtc"
|
bool "using onchip rtc"
|
||||||
select RT_USING_RTC
|
select RT_USING_RTC
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if BSP_USING_RTC
|
if BSP_USING_RTC
|
||||||
config BSP_USING_RTC_LSI
|
config BSP_USING_RTC_LSI
|
||||||
bool "using LSI clock for rtc, if not, LSE default"
|
bool "using LSI clock for rtc, if not, LSE default"
|
||||||
select LSI_VALUE
|
select LSI_VALUE
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config LSI_VALUE
|
config LSI_VALUE
|
||||||
int
|
int
|
||||||
default 40000
|
default 40000
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Onboard Peripheral Drivers"
|
menu "Onboard Peripheral Drivers"
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Board extended module Drivers"
|
menu "Board extended module Drivers"
|
||||||
|
|
Loading…
Reference in New Issue