summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
AgeCommit message (Collapse)Author
2023-01-08format stm32 driversMeco Man
2022-12-21[stm32f1] 对于RTC-Alarm进行添加STM32F1宏控制 (#6765)Zxy
并确认并列出已经在什么情况或板卡上进行了测试。 And confirm in which case or board has been tested. --> STM32F103ZET6 为什么提交这份PR (why to submit this PR) 使用STM32F103ZET6的RTC的Alarm功能出现问题,按照原本的驱动代码编译会报错。 你的解决方案是什么 (what is your solution) 修改底层驱动drv_rtc.c文件,将报错的几个结构体给注释掉即可。 在什么测试环境下测试通过 (what is the test environment) rtstudio下对STM32F103ZET6进行测试并且成功运行Alarm功能
2022-12-11[rtdef] use lower-case to define attributes (#6728)Man, Jianting (Meco)
* [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-09-23RTC STM32F1 Enable PWR and BKP clocks in the same timeYangZhongQing
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-07-04[BSP][STM32] RTC Alarm驱动适配张世争
2022-05-28[STM32][RTC] add support for STM32L0 series. (#5994)cha331
* [STM32][RTC] add support for STM32L0 series. * Update drv_rtc.c
2022-04-19[bug] 修正rtc对时间参数范围的处理 | fix a bug of rtcMeco Man
2022-03-21[ulog][rtc][time][bug] solve the interference when enable the ulog timestamp ↵Man, Jianting (Meco)
(#5687) * [ulog] 解决ulog开启时间戳后与libc time以及rtc驱动相关函数干涉的问题 * ulog:当发生递归输出时,后续递归想要输出的内容可能会因为防范递归的判断而无法输出 因此修改输出规则,在发生递归时,采用简单的,无格式的方式直接输出。这样既保证不会发生递归输出,也可以保证递归输出的部分可以正常输出。 * [ulog] size_t->rt_size_t NULL->RT_NULL
2021-12-10[bsp][stm32] Modify variable name p_tm to tmiysheng
2021-10-01[bsp][stm32] Replace gmtime with gmtime_riysheng
Signed-off-by: iysheng <[email protected]>
2021-09-29[STM32][RTC] Add timeval ops for STM32 platform Sub-second timestamp.armink
2021-07-30[rtc] add commentsMeco Man
2021-07-30rt_rtc_dev_register -> rt_hw_rtc_registerMeco Man
2021-07-08[bsp][stm32] Implement stm32 rtc driver to RTC framework V2.0iysheng
2021-03-08[stm32][driver] auto formattedMeco Man
2021-02-05修复RTC驱动以及libc time.c库若干问题Meco Man
2021-01-29add support stm32wl and bsp/stm32wl55jc-st-nucleo(recommit)forest-rain
update STM32WLxx_HAL to released v1.0.0
2020-10-14stm32wbDozingfiretruck
2020-05-22Merge pull request #3617 from ifreecoding/debugBernard Xiong
局部变量tm_new未初始化,该结构体变量中的tm_isdst值为栈中残留值,不确定,该值会影响是否使用夏令时,最终表现概率性使用夏令时,…
2020-05-21局部变量tm_new未初始化,该结构体变量中的tm_isdst值为栈� ↵ifreecoding
�残留值,不确定,该值会影响是否使用夏令时,最终表现概率性使用夏令时,出现相差1小时的问题。将其初始化为0,默认不使用夏令时
2020-05-15【修改】添加注释及模块化程序tyustli
2020-05-12[bsp] fix stm32 f1 series rtc bugtyustli
2019-10-17[update][bsp][stm32] drv_rtc.ctangweikang
2019-09-04bsp: fix stm32 rtc hal library error.LinJieqiang
2019-06-18[bsp/stm32]add stm32f2xx templatemisonyo
2019-06-09Update drv_rtc.cHubretXie
rtc选用lsi时不工作
2019-06-05[bsp][stm32h743-atk-apollo]add rtcwhj4674672
2019-03-19[bsp][stm32]添加 RTC 时钟源选择zylx
2019-01-22[bsp][stm32] update bsp headfileSummerGift
2018-12-26[bsp][stm32] update driversSummerGift
2018-12-26[bsp][stm32] update stm32 mul-series driversSummerGift
2018-12-13修复RTC驱动中一个粗心BUGe190
137行多了()
2018-12-10[bsp][stm32] add more drivers for stm32 bspSummerGift