Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lfmiao0
rt-thread
提交
76942baa
R
rt-thread
项目概览
lfmiao0
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
76942baa
编写于
3月 20, 2019
作者:
B
Bernard Xiong
提交者:
GitHub
3月 20, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2475 from qgyhd1234/rtc
[bsp][stm32]添加 RTC 时钟源选择
上级
19719b2e
7a80fdf8
变更
32
隐藏空白更改
内联
并排
Showing
32 changed file
with
257 addition
and
40 deletion
+257
-40
bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
+39
-9
bsp/stm32/stm32f091-st-nucleo/README.md
bsp/stm32/stm32f091-st-nucleo/README.md
+1
-1
bsp/stm32/stm32f091-st-nucleo/board/Kconfig
bsp/stm32/stm32f091-st-nucleo/board/Kconfig
+13
-1
bsp/stm32/stm32f103-atk-nano/README.md
bsp/stm32/stm32f103-atk-nano/README.md
+1
-1
bsp/stm32/stm32f103-atk-nano/board/Kconfig
bsp/stm32/stm32f103-atk-nano/board/Kconfig
+13
-1
bsp/stm32/stm32f103-atk-warshipv3/README.md
bsp/stm32/stm32f103-atk-warshipv3/README.md
+1
-1
bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig
bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig
+13
-1
bsp/stm32/stm32f103-fire-arbitrary/README.md
bsp/stm32/stm32f103-fire-arbitrary/README.md
+1
-1
bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig
bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig
+13
-1
bsp/stm32/stm32f103-hw100k-ibox/README.md
bsp/stm32/stm32f103-hw100k-ibox/README.md
+1
-1
bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig
bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig
+16
-2
bsp/stm32/stm32f407-atk-explorer/README.md
bsp/stm32/stm32f407-atk-explorer/README.md
+1
-1
bsp/stm32/stm32f407-atk-explorer/board/Kconfig
bsp/stm32/stm32f407-atk-explorer/board/Kconfig
+13
-1
bsp/stm32/stm32f429-armfly-v6/README.md
bsp/stm32/stm32f429-armfly-v6/README.md
+1
-1
bsp/stm32/stm32f429-armfly-v6/board/Kconfig
bsp/stm32/stm32f429-armfly-v6/board/Kconfig
+13
-1
bsp/stm32/stm32f429-atk-apollo/README.md
bsp/stm32/stm32f429-atk-apollo/README.md
+1
-1
bsp/stm32/stm32f429-atk-apollo/board/Kconfig
bsp/stm32/stm32f429-atk-apollo/board/Kconfig
+13
-1
bsp/stm32/stm32f429-fire-challenger/README.md
bsp/stm32/stm32f429-fire-challenger/README.md
+1
-1
bsp/stm32/stm32f429-fire-challenger/board/Kconfig
bsp/stm32/stm32f429-fire-challenger/board/Kconfig
+13
-1
bsp/stm32/stm32f746-st-disco/board/Kconfig
bsp/stm32/stm32f746-st-disco/board/Kconfig
+3
-0
bsp/stm32/stm32f767-atk-apollo/README.md
bsp/stm32/stm32f767-atk-apollo/README.md
+1
-1
bsp/stm32/stm32f767-atk-apollo/board/Kconfig
bsp/stm32/stm32f767-atk-apollo/board/Kconfig
+13
-1
bsp/stm32/stm32f767-fire-challenger/README.md
bsp/stm32/stm32f767-fire-challenger/README.md
+1
-1
bsp/stm32/stm32f767-fire-challenger/board/Kconfig
bsp/stm32/stm32f767-fire-challenger/board/Kconfig
+13
-1
bsp/stm32/stm32l432-st-nucleo/README.md
bsp/stm32/stm32l432-st-nucleo/README.md
+1
-1
bsp/stm32/stm32l432-st-nucleo/board/Kconfig
bsp/stm32/stm32l432-st-nucleo/board/Kconfig
+13
-1
bsp/stm32/stm32l475-atk-pandora/README.md
bsp/stm32/stm32l475-atk-pandora/README.md
+1
-1
bsp/stm32/stm32l475-atk-pandora/board/Kconfig
bsp/stm32/stm32l475-atk-pandora/board/Kconfig
+13
-1
bsp/stm32/stm32l476-st-nucleo/README.md
bsp/stm32/stm32l476-st-nucleo/README.md
+1
-1
bsp/stm32/stm32l476-st-nucleo/board/Kconfig
bsp/stm32/stm32l476-st-nucleo/board/Kconfig
+14
-1
bsp/stm32/stm32l496-ali-developer/README.md
bsp/stm32/stm32l496-ali-developer/README.md
+1
-1
bsp/stm32/stm32l496-ali-developer/board/Kconfig
bsp/stm32/stm32l496-ali-developer/board/Kconfig
+14
-1
未找到文件。
bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
浏览文件 @
76942baa
...
...
@@ -68,11 +68,11 @@ static rt_err_t set_rtc_time_stamp(time_t time_stamp)
RTC_DateStruct
.
Year
=
p_tm
->
tm_year
-
100
;
RTC_DateStruct
.
WeekDay
=
p_tm
->
tm_wday
+
1
;
if
(
HAL_RTC_SetTime
(
&
RTC_Handler
,
&
RTC_TimeStruct
,
RTC_FORMAT_BIN
)
!=
HAL_OK
)
if
(
HAL_RTC_SetTime
(
&
RTC_Handler
,
&
RTC_TimeStruct
,
RTC_FORMAT_BIN
)
!=
HAL_OK
)
{
return
-
RT_ERROR
;
}
if
(
HAL_RTC_SetDate
(
&
RTC_Handler
,
&
RTC_DateStruct
,
RTC_FORMAT_BIN
)
!=
HAL_OK
)
if
(
HAL_RTC_SetDate
(
&
RTC_Handler
,
&
RTC_DateStruct
,
RTC_FORMAT_BIN
)
!=
HAL_OK
)
{
return
-
RT_ERROR
;
}
...
...
@@ -87,9 +87,17 @@ static void rt_rtc_init(void)
__HAL_RCC_PWR_CLK_ENABLE
();
RCC_OscInitTypeDef
RCC_OscInitStruct
=
{
0
};
#ifdef BSP_RTC_USING_LSI
RCC_OscInitStruct
.
OscillatorType
=
RCC_OSCILLATORTYPE_LSI
;
RCC_OscInitStruct
.
PLL
.
PLLState
=
RCC_PLL_NONE
;
RCC_OscInitStruct
.
LSEState
=
RCC_LSE_OFF
;
RCC_OscInitStruct
.
LSIState
=
RCC_LSI_ON
;
#else
RCC_OscInitStruct
.
OscillatorType
=
RCC_OSCILLATORTYPE_LSE
;
RCC_OscInitStruct
.
PLL
.
PLLState
=
RCC_PLL_NONE
;
RCC_OscInitStruct
.
LSEState
=
RCC_LSE_ON
;
RCC_OscInitStruct
.
LSIState
=
RCC_LSI_OFF
;
#endif
HAL_RCC_OscConfig
(
&
RCC_OscInitStruct
);
}
...
...
@@ -99,7 +107,11 @@ static rt_err_t rt_rtc_config(struct rt_device *dev)
HAL_PWR_EnableBkUpAccess
();
PeriphClkInitStruct
.
PeriphClockSelection
=
RCC_PERIPHCLK_RTC
;
#ifdef BSP_RTC_USING_LSI
PeriphClkInitStruct
.
RTCClockSelection
=
RCC_RTCCLKSOURCE_LSI
;
#else
PeriphClkInitStruct
.
RTCClockSelection
=
RCC_RTCCLKSOURCE_LSE
;
#endif
HAL_RCCEx_PeriphCLKConfig
(
&
PeriphClkInitStruct
);
RTC_Handler
.
Instance
=
RTC
;
...
...
@@ -110,13 +122,31 @@ static rt_err_t rt_rtc_config(struct rt_device *dev)
#if defined(SOC_SERIES_STM32F1)
RTC_Handler
.
Init
.
OutPut
=
RTC_OUTPUTSOURCE_NONE
;
RTC_Handler
.
Init
.
AsynchPrediv
=
RTC_AUTO_1_SECOND
;
#elif defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) || defined(SOC_SERIES_STM32L4)
RTC_Handler
.
Init
.
AsynchPrediv
=
0X7F
;
#ifndef SOC_SERIES_STM32F0
RTC_Handler
.
Init
.
SynchPrediv
=
0XFF
;
#elif defined(SOC_SERIES_STM32F0)
/* set the frequency division */
#ifdef BSP_RTC_USING_LSI
RTC_Handler
.
Init
.
AsynchPrediv
=
0XA0
;
RTC_Handler
.
Init
.
SynchPrediv
=
0xFA
;
#else
RTC_Handler
.
Init
.
AsynchPrediv
=
0X7F
;
RTC_Handler
.
Init
.
SynchPrediv
=
0x0130
;
#endif
#endif
/* BSP_RTC_USING_LSI */
RTC_Handler
.
Init
.
HourFormat
=
RTC_HOURFORMAT_24
;
RTC_Handler
.
Init
.
OutPut
=
RTC_OUTPUT_DISABLE
;
RTC_Handler
.
Init
.
OutPutPolarity
=
RTC_OUTPUT_POLARITY_HIGH
;
RTC_Handler
.
Init
.
OutPutType
=
RTC_OUTPUT_TYPE_OPENDRAIN
;
#elif defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) || defined(SOC_SERIES_STM32L4)
/* set the frequency division */
#ifdef BSP_RTC_USING_LSI
RTC_Handler
.
Init
.
AsynchPrediv
=
0X7D
;
#else
RTC_Handler
.
Init
.
AsynchPrediv
=
0X7F
;
#endif
/* BSP_RTC_USING_LSI */
RTC_Handler
.
Init
.
SynchPrediv
=
0XFF
;
RTC_Handler
.
Init
.
HourFormat
=
RTC_HOURFORMAT_24
;
RTC_Handler
.
Init
.
OutPut
=
RTC_OUTPUT_DISABLE
;
RTC_Handler
.
Init
.
OutPutPolarity
=
RTC_OUTPUT_POLARITY_HIGH
;
...
...
@@ -142,7 +172,7 @@ static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args)
break
;
case
RT_DEVICE_CTRL_RTC_SET_TIME
:
if
(
set_rtc_time_stamp
(
*
(
rt_uint32_t
*
)
args
))
if
(
set_rtc_time_stamp
(
*
(
rt_uint32_t
*
)
args
))
{
result
=
-
RT_ERROR
;
}
...
...
@@ -154,7 +184,7 @@ static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args)
}
#ifdef RT_USING_DEVICE_OPS
const
static
struct
rt_device_ops
rtc_ops
=
const
static
struct
rt_device_ops
rtc_ops
=
{
RT_NULL
,
RT_NULL
,
...
...
bsp/stm32/stm32f091-st-nucleo/README.md
浏览文件 @
76942baa
...
...
@@ -46,7 +46,7 @@ STM32F091RC-NuCLEO 开发板是 ST 官方推出的一款基于 ARM Cortex-M0 内
| I2C | 支持 | |
| TIMER | 支持 | |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| PWM | 支持 | |
| FLASH | 支持 | |
| IWG | 支持 | |
...
...
bsp/stm32/stm32f091-st-nucleo/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -133,11 +133,23 @@ menu "On-chip Peripheral Drivers"
bool "Enable on-chip FLASH"
default n
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f103-atk-nano/README.md
浏览文件 @
76942baa
...
...
@@ -46,7 +46,7 @@ ATK-NANO STM32F103 是正点原子推出的一款基于 ARM Cortex-M3 内核的
| UART | 支持 | UART1/2/3 |
| SPI | 支持 | SPI1/2 |
| I2C | 支持 | 软件 I2C |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| ADC | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
...
...
bsp/stm32/stm32f103-atk-nano/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -178,11 +178,23 @@ menu "On-chip Peripheral Drivers"
bool "Enable on-chip FLASH"
default n
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f103-atk-warshipv3/README.md
浏览文件 @
76942baa
...
...
@@ -50,7 +50,7 @@ STM32F103战舰V3,资源丰富,接口多,功能强大,性价比高,资
| SPI | 支持 | SPI1/2 |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| PWM | 支持 | TIM3 CH1 TIM3 CH2 |
| CAN | 支持 | |
| IWG | 支持 | |
...
...
bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -178,11 +178,23 @@ menu "On-chip Peripheral Drivers"
bool "Enable on-chip FLASH"
default n
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f103-fire-arbitrary/README.md
浏览文件 @
76942baa
...
...
@@ -54,7 +54,7 @@
| SPI | 支持 | SPI1/2/3 |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| SDIO | 暂不支持 | 即将支持 |
...
...
bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -250,11 +250,23 @@ menu "On-chip Peripheral Drivers"
default n
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f103-hw100k-ibox/README.md
浏览文件 @
76942baa
...
...
@@ -48,7 +48,7 @@
| UART | 支持 | UART1 |
| SPI | 暂不支持 | |
| I2C | 支持 | 软件 I2C (J14) |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| ADC | 支持 | ADC1_CHANEL_10, ADC1_CHANNEL_11 |
| PWM | 暂不支持 | |
| IWG | 支持 | 命令:iwdg_sample wdt |
...
...
bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -146,11 +146,25 @@ menu "On-chip Peripheral Drivers"
bool "Enable ADC1"
default n
endif
config BSP_USING_ONCHIP_RTC
menuconfig BSP_USING_ONCHIP_RTC
bool "Enable 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
bool "Enable Watchdog Timer"
select RT_USING_WDT
...
...
bsp/stm32/stm32f407-atk-explorer/README.md
浏览文件 @
76942baa
...
...
@@ -53,7 +53,7 @@
| SPI | 支持 | SPI1/2/3 |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| PWM | 支持 | |
...
...
bsp/stm32/stm32f407-atk-explorer/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -193,11 +193,23 @@ menu "On-chip Peripheral Drivers"
default 25
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f429-armfly-v6/README.md
浏览文件 @
76942baa
...
...
@@ -54,7 +54,7 @@ armfly-v6 STM32F429 是安富莱推出的一款基于 ARM Cortex-M4 内核的开
| SPI | 支持 | SPI1/2/5 |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| SDIO | 支持 | |
...
...
bsp/stm32/stm32f429-armfly-v6/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -182,11 +182,23 @@ menu "On-chip Peripheral Drivers"
default n
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f429-atk-apollo/README.md
浏览文件 @
76942baa
...
...
@@ -54,7 +54,7 @@
| SPI | 支持 | SPI1/2/5 |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| SDIO | 支持 | |
...
...
bsp/stm32/stm32f429-atk-apollo/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -219,11 +219,23 @@ menu "On-chip Peripheral Drivers"
default n
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f429-fire-challenger/README.md
浏览文件 @
76942baa
...
...
@@ -55,7 +55,7 @@
| SPI | 支持 | SPI1/2/5 |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| SDIO | 暂不支持 | 即将支持 |
...
...
bsp/stm32/stm32f429-fire-challenger/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -204,11 +204,23 @@ menu "On-chip Peripheral Drivers"
default 23
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f746-st-disco/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -53,6 +53,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable GPIO"
select RT_USING_PIN
default y
menuconfig BSP_USING_UART
bool "Enable UART"
default y
...
...
@@ -67,9 +68,11 @@ menu "On-chip Peripheral Drivers"
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
default n
endif
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
config BSP_USING_QSPI
bool "Enable QSPI BUS"
select RT_USING_QSPI
...
...
bsp/stm32/stm32f767-atk-apollo/README.md
浏览文件 @
76942baa
...
...
@@ -55,7 +55,7 @@
| SPI | 支持 | |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| PWM | 支持 | |
| SDIO | 支持 | |
...
...
bsp/stm32/stm32f767-atk-apollo/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -216,11 +216,23 @@ menu "On-chip Peripheral Drivers"
default 117
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32f767-fire-challenger/README.md
浏览文件 @
76942baa
...
...
@@ -56,7 +56,7 @@
| SPI | 支持 | SPI1/x/x |
| I2C | 支持 | 软件 I2C |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| FLASH | 支持 | 已适配
[
FAL
](
https://github.com/RT-Thread-packages/fal
)
|
| SDIO | 支持 | |
...
...
bsp/stm32/stm32f767-fire-challenger/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -188,11 +188,23 @@ menuconfig BSP_USING_SPI
default 23
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32l432-st-nucleo/README.md
浏览文件 @
76942baa
...
...
@@ -43,7 +43,7 @@
| UART | 支持 | UART2 |
| SPI | 暂不支持 | SPI1 即将支持 |
| I2C | 暂不支持 | 软件 I2C 即将支持 |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| PWM | 暂不支持 | 即将支持 |
| USB Device | 暂不支持 | 即将支持 |
| IWG | 支持 | 独立看门狗,未开启窗口模式 |
...
...
bsp/stm32/stm32l432-st-nucleo/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -39,11 +39,23 @@ menu "On-chip Peripheral Drivers"
bool "Enable on-chip FLASH"
default n
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32l475-atk-pandora/README.md
浏览文件 @
76942baa
...
...
@@ -65,7 +65,7 @@
| I2C | 支持 | |
| TIM | 支持 | |
| ADC | 支持 | |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| PWM | 支持 | |
| USB Device | 暂不支持 | 即将支持 |
...
...
bsp/stm32/stm32l475-atk-pandora/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -210,11 +210,23 @@ menu "On-chip Peripheral Drivers"
default n
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
bsp/stm32/stm32l476-st-nucleo/README.md
浏览文件 @
76942baa
...
...
@@ -42,7 +42,7 @@
| GPIO | 支持 | |
| UART | 支持 | UART2 |
| IIC | 支持 | 软件模拟 |
| RTC | 支持 |
LSE 时钟源
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
|
**扩展模块**
|
**支持情况**
|
**备注**
|
## 使用说明
...
...
bsp/stm32/stm32l476-st-nucleo/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -87,10 +87,23 @@ menu "On-chip Peripheral Drivers"
endif
endif
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
...
...
bsp/stm32/stm32l496-ali-developer/README.md
浏览文件 @
76942baa
...
...
@@ -62,7 +62,7 @@ Developer Kit STM32L496 是阿里联合[诺行](http://www.notioni.com/)推出
| I2C | 支持 | 软件 I2C 2/3/4 |
| TIM | 支持 | TIM15/16/17 |
| ADC | 支持 | ADC1 |
| RTC | 支持 |
|
| RTC | 支持 |
支持外部晶振和内部低速时钟
|
| WDT | 支持 | |
| PWM | 支持 | PWM3 |
| USB Device | 暂不支持 | 即将支持 |
...
...
bsp/stm32/stm32l496-ali-developer/board/Kconfig
浏览文件 @
76942baa
...
...
@@ -196,10 +196,23 @@ menu "On-chip Peripheral Drivers"
default n
select RT_USING_ADC
config BSP_USING_ONCHIP_RTC
menu
config BSP_USING_ONCHIP_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
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
bool "Enable Watchdog Timer"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录