[bsp][stm32]为所有支持 rtc 的 bsp 添加时钟源选项
This commit is contained in:
parent
b941e6c730
commit
7a80fdf894
@ -50,7 +50,7 @@ STM32F103战舰V3,资源丰富,接口多,功能强大,性价比高,资
|
|||||||
| SPI | 支持 | SPI1/2 |
|
| SPI | 支持 | SPI1/2 |
|
||||||
| I2C | 支持 | 软件 I2C |
|
| I2C | 支持 | 软件 I2C |
|
||||||
| ADC | 支持 | |
|
| ADC | 支持 | |
|
||||||
| RTC | 支持 | |
|
| RTC | 支持 | 支持外部晶振和内部低速时钟 |
|
||||||
| PWM | 支持 | TIM3 CH1 TIM3 CH2 |
|
| PWM | 支持 | TIM3 CH1 TIM3 CH2 |
|
||||||
| CAN | 支持 | |
|
| CAN | 支持 | |
|
||||||
| IWG | 支持 | |
|
| IWG | 支持 | |
|
||||||
|
@ -178,11 +178,23 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable on-chip FLASH"
|
bool "Enable on-chip FLASH"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_ONCHIP_RTC
|
menuconfig BSP_USING_ONCHIP_RTC
|
||||||
bool "Enable RTC"
|
bool "Enable RTC"
|
||||||
select RT_USING_RTC
|
select RT_USING_RTC
|
||||||
select RT_USING_LIBC
|
select RT_USING_LIBC
|
||||||
default n
|
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
|
||||||
|
|
||||||
config BSP_USING_WDT
|
config BSP_USING_WDT
|
||||||
bool "Enable Watchdog Timer"
|
bool "Enable Watchdog Timer"
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
| UART | 支持 | UART1 |
|
| UART | 支持 | UART1 |
|
||||||
| SPI | 暂不支持 | |
|
| SPI | 暂不支持 | |
|
||||||
| I2C | 支持 | 软件 I2C (J14) |
|
| I2C | 支持 | 软件 I2C (J14) |
|
||||||
| RTC | 支持 | |
|
| RTC | 支持 | 支持外部晶振和内部低速时钟 |
|
||||||
| ADC | 支持 | ADC1_CHANEL_10, ADC1_CHANNEL_11 |
|
| ADC | 支持 | ADC1_CHANEL_10, ADC1_CHANNEL_11 |
|
||||||
| PWM | 暂不支持 | |
|
| PWM | 暂不支持 | |
|
||||||
| IWG | 支持 | 命令:iwdg_sample wdt |
|
| IWG | 支持 | 命令:iwdg_sample wdt |
|
||||||
|
@ -146,11 +146,25 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable ADC1"
|
bool "Enable ADC1"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
config BSP_USING_ONCHIP_RTC
|
|
||||||
|
menuconfig BSP_USING_ONCHIP_RTC
|
||||||
bool "Enable RTC"
|
bool "Enable RTC"
|
||||||
select RT_USING_RTC
|
select RT_USING_RTC
|
||||||
select RT_USING_LIBC
|
select RT_USING_LIBC
|
||||||
default n
|
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
|
||||||
|
|
||||||
config BSP_USING_WDT
|
config BSP_USING_WDT
|
||||||
bool "Enable Watchdog Timer"
|
bool "Enable Watchdog Timer"
|
||||||
select RT_USING_WDT
|
select RT_USING_WDT
|
||||||
|
@ -53,6 +53,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable GPIO"
|
bool "Enable GPIO"
|
||||||
select RT_USING_PIN
|
select RT_USING_PIN
|
||||||
default y
|
default y
|
||||||
|
|
||||||
menuconfig BSP_USING_UART
|
menuconfig BSP_USING_UART
|
||||||
bool "Enable UART"
|
bool "Enable UART"
|
||||||
default y
|
default y
|
||||||
@ -67,9 +68,11 @@ menu "On-chip Peripheral Drivers"
|
|||||||
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config BSP_USING_ON_CHIP_FLASH
|
config BSP_USING_ON_CHIP_FLASH
|
||||||
bool "Enable on-chip FLASH"
|
bool "Enable on-chip FLASH"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_QSPI
|
config BSP_USING_QSPI
|
||||||
bool "Enable QSPI BUS"
|
bool "Enable QSPI BUS"
|
||||||
select RT_USING_QSPI
|
select RT_USING_QSPI
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
| UART | 支持 | UART2 |
|
| UART | 支持 | UART2 |
|
||||||
| SPI | 暂不支持 | SPI1 即将支持 |
|
| SPI | 暂不支持 | SPI1 即将支持 |
|
||||||
| I2C | 暂不支持 | 软件 I2C 即将支持 |
|
| I2C | 暂不支持 | 软件 I2C 即将支持 |
|
||||||
| RTC | 支持 | |
|
| RTC | 支持 | 支持外部晶振和内部低速时钟 |
|
||||||
| PWM | 暂不支持 | 即将支持 |
|
| PWM | 暂不支持 | 即将支持 |
|
||||||
| USB Device | 暂不支持 | 即将支持 |
|
| USB Device | 暂不支持 | 即将支持 |
|
||||||
| IWG | 支持 | 独立看门狗,未开启窗口模式 |
|
| IWG | 支持 | 独立看门狗,未开启窗口模式 |
|
||||||
|
@ -39,11 +39,23 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable on-chip FLASH"
|
bool "Enable on-chip FLASH"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_ONCHIP_RTC
|
menuconfig BSP_USING_ONCHIP_RTC
|
||||||
bool "Enable RTC"
|
bool "Enable RTC"
|
||||||
select RT_USING_RTC
|
select RT_USING_RTC
|
||||||
select RT_USING_LIBC
|
select RT_USING_LIBC
|
||||||
default n
|
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
|
||||||
|
|
||||||
config BSP_USING_WDT
|
config BSP_USING_WDT
|
||||||
bool "Enable Watchdog Timer"
|
bool "Enable Watchdog Timer"
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
| GPIO | 支持 | |
|
| GPIO | 支持 | |
|
||||||
| UART | 支持 | UART2 |
|
| UART | 支持 | UART2 |
|
||||||
| IIC | 支持 | 软件模拟 |
|
| IIC | 支持 | 软件模拟 |
|
||||||
| RTC | 支持 | LSE 时钟源|
|
| RTC | 支持 | 支持外部晶振和内部低速时钟 |
|
||||||
| **扩展模块** | **支持情况** | **备注** |
|
| **扩展模块** | **支持情况** | **备注** |
|
||||||
|
|
||||||
## 使用说明
|
## 使用说明
|
||||||
|
@ -87,10 +87,23 @@ menu "On-chip Peripheral Drivers"
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config BSP_USING_ONCHIP_RTC
|
menuconfig BSP_USING_ONCHIP_RTC
|
||||||
bool "Enable RTC"
|
bool "Enable RTC"
|
||||||
select RT_USING_RTC
|
select RT_USING_RTC
|
||||||
|
select RT_USING_LIBC
|
||||||
default n
|
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
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ Developer Kit STM32L496 是阿里联合[诺行](http://www.notioni.com/)推出
|
|||||||
| I2C | 支持 | 软件 I2C 2/3/4 |
|
| I2C | 支持 | 软件 I2C 2/3/4 |
|
||||||
| TIM | 支持 | TIM15/16/17 |
|
| TIM | 支持 | TIM15/16/17 |
|
||||||
| ADC | 支持 | ADC1 |
|
| ADC | 支持 | ADC1 |
|
||||||
| RTC | 支持 | |
|
| RTC | 支持 | 支持外部晶振和内部低速时钟 |
|
||||||
| WDT | 支持 | |
|
| WDT | 支持 | |
|
||||||
| PWM | 支持 | PWM3 |
|
| PWM | 支持 | PWM3 |
|
||||||
| USB Device | 暂不支持 | 即将支持 |
|
| USB Device | 暂不支持 | 即将支持 |
|
||||||
|
@ -196,10 +196,23 @@ menu "On-chip Peripheral Drivers"
|
|||||||
default n
|
default n
|
||||||
select RT_USING_ADC
|
select RT_USING_ADC
|
||||||
|
|
||||||
config BSP_USING_ONCHIP_RTC
|
menuconfig BSP_USING_ONCHIP_RTC
|
||||||
bool "Enable RTC"
|
bool "Enable RTC"
|
||||||
select RT_USING_RTC
|
select RT_USING_RTC
|
||||||
|
select RT_USING_LIBC
|
||||||
default n
|
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
|
||||||
|
|
||||||
config BSP_USING_WDT
|
config BSP_USING_WDT
|
||||||
bool "Enable Watchdog Timer"
|
bool "Enable Watchdog Timer"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user