Man, Jianting (Meco)
|
99bdf978d7
|
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak
* [rtdef] rename RT_USED attribute as rt_used
* [rtdef] rename RT_SECTION attribute as rt_section
* [rtdef] rename ALIGN attribute as rt_align
* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
|
2022-12-11 13:12:03 -05:00 |
YangZhongQing
|
1c2d05d545
|
RTC STM32F1 Enable PWR and BKP clocks in the same time
bsp\stm32\libraries\HAL_Drivers\drv_rtc.c在STM32F10x上有一个“RTC首次上电时BKP时钟没使能”的问题。
STM32F10x要求:
写RTC Domain and RTC registers之前需要__HAL_RCC_BKP_CLK_ENABLE(详见:stm32f1xx_hal_rtc.c里面的##### Backup Domain Access #####)
问题分析:
1、RTC首次上电时:由于HAL_RTC_Init初始化之前没有使能BKP时钟,所以对RTC registers的初始化无效。
2、然后用date命令设置时间,调用到set_rtc_time_stamp也没有__HAL_RCC_BKP_CLK_ENABLE,所以HAL_RTCEx_BKUPWrite写的值无法真正永存于BKP,重启后就丢失。
最终导致:对于RTC首次上电的情况,每次重启后RTC_BKP_DR1里的值都不是BKUP_REG_DATA,导致永远无法调用到rt_rtc_f1_bkp_update()去使能BKP时钟。
解决办法:
参考STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\RTC\Calendar\main.c里面的RTC_Configuration()同时打开RCC_APB1Periph_PWR和RCC_APB1Periph_BKP
|
2022-09-23 21:04:35 -04:00 |
张世争
|
c8a73411f6
|
[BSP][STM32] RTC Alarm驱动适配
|
2022-07-04 09:39:12 +08:00 |
cha331
|
9d5302d7fb
|
[STM32][RTC] add support for STM32L0 series. (#5994)
* [STM32][RTC] add support for STM32L0 series.
* Update drv_rtc.c
|
2022-05-28 10:02:01 +08:00 |
Meco Man
|
991b6e78b3
|
[bug] 修正rtc对时间参数范围的处理 | fix a bug of rtc
|
2022-04-19 11:48:59 +08:00 |
Man, Jianting (Meco)
|
8b58577230
|
[ulog][rtc][time][bug] solve the interference when enable the ulog timestamp (#5687)
* [ulog] 解决ulog开启时间戳后与libc time以及rtc驱动相关函数干涉的问题
* ulog:当发生递归输出时,后续递归想要输出的内容可能会因为防范递归的判断而无法输出
因此修改输出规则,在发生递归时,采用简单的,无格式的方式直接输出。这样既保证不会发生递归输出,也可以保证递归输出的部分可以正常输出。
* [ulog] size_t->rt_size_t NULL->RT_NULL
|
2022-03-21 14:06:17 +08:00 |
iysheng
|
b6d90dffcf
|
[bsp][stm32] Modify variable name p_tm to tm
|
2021-12-10 16:25:40 +08:00 |
iysheng
|
dbaad29e04
|
[bsp][stm32] Replace gmtime with gmtime_r
Signed-off-by: iysheng <iysheng@163.com>
|
2021-10-01 16:41:21 +08:00 |
armink
|
0beb9b3a07
|
[STM32][RTC] Add timeval ops for STM32 platform Sub-second timestamp.
|
2021-09-29 17:58:00 +08:00 |
Meco Man
|
a25667a7e5
|
[rtc] add comments
|
2021-07-30 07:01:09 +08:00 |
Meco Man
|
9e47b95e61
|
rt_rtc_dev_register -> rt_hw_rtc_register
|
2021-07-30 02:31:33 +08:00 |
iysheng
|
ecc0981d10
|
[bsp][stm32] Implement stm32 rtc driver to RTC framework V2.0
|
2021-07-08 22:41:41 +08:00 |
Meco Man
|
fc04d828ee
|
[stm32][driver] auto formatted
|
2021-03-08 22:40:39 +08:00 |
Meco Man
|
c2fca3dffe
|
修复RTC驱动以及libc time.c库若干问题
|
2021-02-05 13:13:22 +08:00 |
forest-rain
|
aa285845f2
|
add support stm32wl and bsp/stm32wl55jc-st-nucleo(recommit)
update STM32WLxx_HAL to released v1.0.0
|
2021-01-29 10:28:18 +08:00 |
Dozingfiretruck
|
af1e92e661
|
stm32wb
|
2020-10-14 15:03:33 +08:00 |
Bernard Xiong
|
daa3227ca8
|
Merge pull request #3617 from ifreecoding/debug
局部变量tm_new未初始化,该结构体变量中的tm_isdst值为栈中残留值,不确定,该值会影响是否使用夏令时,最终表现概率性使用夏令时,…
|
2020-05-22 18:25:36 +08:00 |
ifreecoding
|
76cd1608a7
|
局部变量tm_new未初始化,该结构体变量中的tm_isdst值为栈中残留值,不确定,该值会影响是否使用夏令时,最终表现概率性使用夏令时,出现相差1小时的问题。将其初始化为0,默认不使用夏令时
|
2020-05-21 17:13:36 +08:00 |
tyustli
|
55edb9642a
|
【修改】添加注释及模块化程序
|
2020-05-15 12:53:36 +08:00 |
tyustli
|
a7c293fac0
|
[bsp] fix stm32 f1 series rtc bug
|
2020-05-12 14:08:24 +08:00 |
tangweikang
|
2a37a4abf6
|
[update][bsp][stm32] drv_rtc.c
|
2019-10-17 18:29:32 +08:00 |
LinJieqiang
|
dce37d0b4b
|
bsp: fix stm32 rtc hal library error.
|
2019-09-04 10:08:34 +08:00 |
misonyo
|
aae6274ef1
|
[bsp/stm32]add stm32f2xx template
|
2019-06-18 18:26:49 +08:00 |
HubretXie
|
56a65431dc
|
Update drv_rtc.c
rtc选用lsi时不工作
|
2019-06-09 13:56:44 +08:00 |
whj4674672
|
0ef18239e0
|
[bsp][stm32h743-atk-apollo]add rtc
|
2019-06-05 14:25:15 +08:00 |
zylx
|
b941e6c730
|
[bsp][stm32]添加 RTC 时钟源选择
|
2019-03-19 18:24:28 +08:00 |
SummerGift
|
45ece194cc
|
[bsp][stm32] update bsp headfile
|
2019-01-22 10:05:57 +08:00 |
SummerGift
|
4d6d16fc98
|
[bsp][stm32] update drivers
|
2018-12-26 18:16:26 +08:00 |
SummerGift
|
c6be644157
|
[bsp][stm32] update stm32 mul-series drivers
|
2018-12-26 10:43:46 +08:00 |
e190
|
c042da4e9d
|
修复RTC驱动中一个粗心BUG
137行多了()
|
2018-12-13 08:38:53 +08:00 |
SummerGift
|
d509db834b
|
[bsp][stm32] add more drivers for stm32 bsp
|
2018-12-10 09:48:10 +08:00 |