fb61c7960b
* 本次提交包括①BSP驱动新增②F103库更新③GCC、IAR适配及MDK更新④README文件及由更新驱动引起的脚本改动。 详情如下: 一、BSP驱动新增 这是本次PR的主要目的,现新增了如下BSP驱动: ADC、DAC、RTC、PWM、HWTIMER、I2C、SPI和WDT等八个驱动文件。 二、F103库更新: 本次提交使用2022年3月初极海官网发布的最新F103库,主要增加了版权声明、USB驱动及其他代码调整。 三、编译器适配: 1、新增GCC编译支持,在ENV工具下编译能成功且输出的bin文件能够使开发板闪灯。 2、新增IAR工程支持。 3、由F103的SDK更新,MDK的工程也进行了相应更新。 四、其他 1、README文件做了修改,加入了scons编译后的jlink下载说明和官网链接。 2、Kconfig、SConscript脚本根据驱动更新做了修改。 * 格式化代码(AStyle + Formatting) * 增加BSP APM版权声明 * 在ci添加当前bsp的路径,以能够验证gcc能否正常编译 * 路径的“\”改为“/”
179 lines
4.3 KiB
Plaintext
179 lines
4.3 KiB
Plaintext
menu "Hardware Drivers Config"
|
|
|
|
config SOC_APM32F103ZE
|
|
bool
|
|
select SOC_SERIES_APM32F1
|
|
select RT_USING_COMPONENTS_INIT
|
|
select RT_USING_USER_MAIN
|
|
default y
|
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
config BSP_USING_GPIO
|
|
bool "Enable GPIO"
|
|
select RT_USING_PIN
|
|
default y
|
|
|
|
menuconfig BSP_USING_UART
|
|
bool "Enable UART"
|
|
default y
|
|
select RT_USING_SERIAL
|
|
if BSP_USING_UART
|
|
config BSP_USING_UART1
|
|
bool "Enable UART1"
|
|
default y
|
|
|
|
endif
|
|
|
|
menuconfig BSP_USING_ADC
|
|
bool "Enable ADC"
|
|
default n
|
|
select RT_USING_ADC
|
|
if BSP_USING_ADC
|
|
config BSP_USING_ADC1
|
|
bool "Enable ADC1"
|
|
default n
|
|
config BSP_USING_ADC2
|
|
bool "Enable ADC2"
|
|
default n
|
|
config BSP_USING_ADC3
|
|
bool "Enable ADC3"
|
|
default n
|
|
endif
|
|
|
|
menuconfig BSP_USING_DAC
|
|
bool "Enable DAC"
|
|
default n
|
|
select RT_USING_DAC
|
|
if BSP_USING_DAC
|
|
config BSP_USING_DAC1
|
|
bool "Enable DAC1"
|
|
default n
|
|
endif
|
|
|
|
menuconfig BSP_USING_ONCHIP_RTC
|
|
bool "Enable RTC"
|
|
select RT_USING_RTC
|
|
default n
|
|
if BSP_USING_ONCHIP_RTC
|
|
choice
|
|
prompt "Select clock source"
|
|
default BSP_RTC_USING_LSE
|
|
|
|
config BSP_RTC_USING_LSE
|
|
bool "RTC USING LSE"
|
|
|
|
config BSP_RTC_USING_LSI
|
|
bool "RTC USING LSI"
|
|
endchoice
|
|
endif
|
|
|
|
menuconfig BSP_USING_I2C1
|
|
bool "Enable I2C1 BUS (software simulation)"
|
|
default n
|
|
select RT_USING_I2C
|
|
select RT_USING_I2C_BITOPS
|
|
select RT_USING_PIN
|
|
if BSP_USING_I2C1
|
|
config BSP_I2C1_SCL_PIN
|
|
int "i2c1 scl pin number"
|
|
range 0 63
|
|
default 22
|
|
config BSP_I2C1_SDA_PIN
|
|
int "I2C1 sda pin number"
|
|
range 0 63
|
|
default 23
|
|
endif
|
|
|
|
menuconfig BSP_USING_SPI
|
|
bool "Enable SPI"
|
|
default n
|
|
select RT_USING_SPI
|
|
if BSP_USING_SPI
|
|
config BSP_USING_SPI1
|
|
bool "Enable SPI1"
|
|
default n
|
|
|
|
config BSP_USING_SPI2
|
|
bool "Enable SPI2"
|
|
default n
|
|
|
|
config BSP_USING_SPI3
|
|
bool "Enable SPI3"
|
|
default n
|
|
endif
|
|
|
|
menuconfig BSP_USING_TMR
|
|
bool "Enable Timer"
|
|
default n
|
|
select RT_USING_HWTIMER
|
|
if BSP_USING_TMR
|
|
config BSP_USING_TMR1
|
|
bool "Enable TMR1"
|
|
default n
|
|
|
|
config BSP_USING_TMR2
|
|
bool "Enable TMR2"
|
|
default n
|
|
|
|
config BSP_USING_TMR3
|
|
bool "Enable TMR3"
|
|
default n
|
|
|
|
config BSP_USING_TMR4
|
|
bool "Enable TMR4"
|
|
default n
|
|
|
|
config BSP_USING_TMR5
|
|
bool "Enable TMR5"
|
|
default n
|
|
|
|
config BSP_USING_TMR6
|
|
bool "Enable TMR6"
|
|
default n
|
|
|
|
config BSP_USING_TMR7
|
|
bool "Enable TMR7"
|
|
default n
|
|
|
|
config BSP_USING_TMR8
|
|
bool "Enable TMR8"
|
|
default n
|
|
endif
|
|
|
|
menuconfig BSP_USING_PWM
|
|
bool "Enable PWM"
|
|
default n
|
|
select RT_USING_PWM
|
|
if BSP_USING_PWM
|
|
menuconfig BSP_USING_PWM3
|
|
bool "Enable timer3 output pwm"
|
|
default n
|
|
if BSP_USING_PWM3
|
|
config BSP_USING_PWM3_CH1
|
|
bool "Enable PWM3 channel1"
|
|
default n
|
|
|
|
config BSP_USING_PWM3_CH2
|
|
bool "Enable PWM3 channel2"
|
|
default n
|
|
|
|
config BSP_USING_PWM3_CH3
|
|
bool "Enable PWM3 channel3"
|
|
default n
|
|
|
|
config BSP_USING_PWM3_CH4
|
|
bool "Enable PWM3 channel4"
|
|
default n
|
|
endif
|
|
endif
|
|
|
|
config BSP_USING_WDT
|
|
bool "Enable Watchdog Timer"
|
|
select RT_USING_WDT
|
|
default n
|
|
|
|
endmenu
|
|
|
|
endmenu
|