mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 06:19:24 +08:00
06fdc108b4
* first commit, keil test pass * feat : n32g452xx direct structure base at32 1. 重新整理目录结构 * feat : 基于AT32,将各驱动移植整改待验证 1. 部分驱动已经整改,但未验证 2. 根据AT32整改目录结构 * feat : add README document 1. 完善配置文件 2. 添加说明文档 * feat : 验证添加的驱动 1. UART 1-3 验证通过 2. ADC 1-2 CH 6-9 验证通过 3. TIM 6-7 验证通过 * feat : complete readme document * feat : format code 1. ref https://github.com/mysterywolf/formatting * feat : 完成PWM驱动移植与自测 1. 添加PWM测试代码 2. 修正PWM驱动周期与脉冲错误问题 * feat : 删除多余代码与多余的文件,修正注释与函数命名 * feat : fix tim channel comment * feat : 完成DEMO测试例子 1. 完成MAIN函数中的LED测试例子 2. 完善README文档 3. 更新添加许可文件 * feat : 根据BSP提交自查完善固件 1. 添加.ignore_format.yml文件 2. 修正main.c的注释 * feat : add last line in .ignore_format.yml * feat : delet file_path in .ignore_format.yml * fix: gPIO/ADC driver 1. add ADC temperature&vref channel. 2.add GPIO IPD/OD configration * fix: 解决告警 1. 解决告警(rt_drv_pwm.c: warning: implicit declaration of function 'atoi') * feat: add scons --dist function * fix: 解决MDK5无法编译问题 * perf: delete invalid code Co-authored-by: linyuanbo_breo_server <linyuanbo@breo.com.cn>
164 lines
4.1 KiB
Plaintext
Executable File
164 lines
4.1 KiB
Plaintext
Executable File
menu "Hardware Drivers Config"
|
|
|
|
config SOC_N32G452XX
|
|
bool
|
|
select SOC_SERIES_N32G452XX
|
|
select RT_USING_COMPONENTS_INIT
|
|
select RT_USING_USER_MAIN
|
|
default y
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
config RT_USING_SERIAL
|
|
bool "Enable USART (uart1)"
|
|
select BSP_USING_UART
|
|
select BSP_USING_UART1
|
|
default y
|
|
|
|
endmenu
|
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
config RT_USING_GPIO
|
|
bool "Enable GPIO"
|
|
select RT_USING_PIN
|
|
default y
|
|
|
|
config BSP_USING_ON_CHIP_FLASH
|
|
bool "Enable on-chip FLASH"
|
|
default n
|
|
|
|
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
|
|
|
|
config BSP_USING_UART2
|
|
bool "Enable UART2"
|
|
default n
|
|
|
|
config BSP_USING_UART3
|
|
bool "Enable UART3"
|
|
default n
|
|
endif
|
|
|
|
menuconfig BSP_USING_PWM
|
|
bool "Enable PWM"
|
|
default n
|
|
select RT_USING_PWM
|
|
if BSP_USING_PWM
|
|
menuconfig BSP_USING_TIM3
|
|
bool "Enable timer3 output PWM"
|
|
default n
|
|
if BSP_USING_TIM3
|
|
config BSP_USING_TIM3_CH1
|
|
bool "Enable TIM3 channel1 PWM"
|
|
default n
|
|
config BSP_USING_TIM3_CH2
|
|
bool "Enable TIM3 channel2 PWM"
|
|
default n
|
|
config BSP_USING_TIM3_CH3
|
|
bool "Enable TIM3 channel3 PWM"
|
|
default n
|
|
config BSP_USING_TIM3_CH4
|
|
bool "Enable TIM3 channel4 PWM"
|
|
default n
|
|
endif
|
|
endif
|
|
|
|
menuconfig BSP_USING_HWTIMER
|
|
bool "Enable HWTIMER"
|
|
default n
|
|
select RT_USING_HWTIMER
|
|
if BSP_USING_HWTIMER
|
|
config BSP_USING_HWTIM3
|
|
bool "Enable hardware timer3"
|
|
default n
|
|
config BSP_USING_HWTIM4
|
|
bool "Enable hardware timer4"
|
|
default n
|
|
config BSP_USING_HWTIM5
|
|
bool "Enable hardware timer5"
|
|
default n
|
|
config BSP_USING_HWTIM6
|
|
bool "Enable hardware timer6"
|
|
default n
|
|
config BSP_USING_HWTIM7
|
|
bool "Enable hardware timer7"
|
|
default n
|
|
endif
|
|
|
|
menuconfig BSP_USING_SPI
|
|
bool "Enable SPI BUS"
|
|
default n
|
|
select RT_USING_SPI
|
|
if BSP_USING_SPI
|
|
config BSP_USING_SPI1
|
|
bool "Enable SPI1 BUS"
|
|
default n
|
|
|
|
config BSP_USING_SPI2
|
|
bool "Enable SPI2 BUS"
|
|
default n
|
|
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_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
|
|
endif
|
|
|
|
menuconfig BSP_USING_CAN
|
|
bool "Enable CAN"
|
|
default n
|
|
select RT_USING_CAN
|
|
if BSP_USING_CAN
|
|
config BSP_USING_CAN1
|
|
bool "using CAN1"
|
|
default n
|
|
config BSP_USING_CAN2
|
|
bool "using CAN2"
|
|
default n
|
|
endif
|
|
|
|
menuconfig BSP_USING_SDIO
|
|
bool "Enable SDIO"
|
|
default n
|
|
select RT_USING_SDIO
|
|
if BSP_USING_SDIO
|
|
config BSP_USING_SDIO1
|
|
bool "Enable SDIO1"
|
|
default n
|
|
endif
|
|
endmenu
|
|
|
|
endmenu
|