<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c, branch serialX-dev</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c?h=serialX-dev</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c?h=serialX-dev'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2023-01-09T03:52:13Z</updated>
<entry>
<title>format stm32 drivers</title>
<updated>2023-01-09T03:52:13Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2023-01-09T02:20:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7ecba50ff6874cc324afb2f896de157c844dbf44'/>
<id>urn:sha1:7ecba50ff6874cc324afb2f896de157c844dbf44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[stm32f1] 对于RTC-Alarm进行添加STM32F1宏控制 (#6765)</title>
<updated>2022-12-22T01:33:54Z</updated>
<author>
<name>Zxy</name>
<email>78582677+ZosCat1@users.noreply.github.com</email>
</author>
<published>2022-12-22T01:33:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f4323f2049328a6fdaa70a350f5a98e0b6cdb164'/>
<id>urn:sha1:f4323f2049328a6fdaa70a350f5a98e0b6cdb164</id>
<content type='text'>
并确认并列出已经在什么情况或板卡上进行了测试。
And confirm in which case or board has been tested. --&gt;
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功能</content>
</entry>
<entry>
<title>[rtdef] use lower-case to define attributes (#6728)</title>
<updated>2022-12-11T18:12:03Z</updated>
<author>
<name>Man, Jianting (Meco)</name>
<email>920369182@qq.com</email>
</author>
<published>2022-12-11T18:12:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=99bdf978d7fe4ec18ed50a639e15b254825c871b'/>
<id>urn:sha1:99bdf978d7fe4ec18ed50a639e15b254825c871b</id>
<content type='text'>
* [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</content>
</entry>
<entry>
<title>RTC STM32F1 Enable PWR and BKP clocks in the same time</title>
<updated>2022-09-24T01:04:35Z</updated>
<author>
<name>YangZhongQing</name>
<email>vipox@qq.com</email>
</author>
<published>2022-09-11T04:08:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1c2d05d54598e57121bc12e4e2c1b8c0681b2db1'/>
<id>urn:sha1:1c2d05d54598e57121bc12e4e2c1b8c0681b2db1</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>[BSP][STM32] RTC Alarm驱动适配</title>
<updated>2022-07-04T01:39:12Z</updated>
<author>
<name>张世争</name>
<email>zhangshizheng@rt-thread.com</email>
</author>
<published>2022-06-10T05:57:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c8a73411f65f7107c4b5498b0ab10aaa840436c6'/>
<id>urn:sha1:c8a73411f65f7107c4b5498b0ab10aaa840436c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[STM32][RTC] add support for STM32L0 series. (#5994)</title>
<updated>2022-05-28T02:02:01Z</updated>
<author>
<name>cha331</name>
<email>1256420562@qq.com</email>
</author>
<published>2022-05-28T02:02:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9d5302d7fbcd506c380ab78ac86af34d8080e7bf'/>
<id>urn:sha1:9d5302d7fbcd506c380ab78ac86af34d8080e7bf</id>
<content type='text'>
* [STM32][RTC] add support for STM32L0 series.

* Update drv_rtc.c</content>
</entry>
<entry>
<title>[bug] 修正rtc对时间参数范围的处理 | fix a bug of rtc</title>
<updated>2022-04-19T03:48:59Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2022-04-17T02:49:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=991b6e78b3bd51b810f6e7a74e7b3665ed90dcab'/>
<id>urn:sha1:991b6e78b3bd51b810f6e7a74e7b3665ed90dcab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[ulog][rtc][time][bug] solve the interference when enable the ulog timestamp (#5687)</title>
<updated>2022-03-21T06:06:17Z</updated>
<author>
<name>Man, Jianting (Meco)</name>
<email>920369182@qq.com</email>
</author>
<published>2022-03-21T06:06:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=8b585772301574534eedff72ed41bc73cbee2c26'/>
<id>urn:sha1:8b585772301574534eedff72ed41bc73cbee2c26</id>
<content type='text'>
* [ulog] 解决ulog开启时间戳后与libc time以及rtc驱动相关函数干涉的问题
* ulog：当发生递归输出时，后续递归想要输出的内容可能会因为防范递归的判断而无法输出
因此修改输出规则，在发生递归时，采用简单的，无格式的方式直接输出。这样既保证不会发生递归输出，也可以保证递归输出的部分可以正常输出。
* [ulog] size_t-&gt;rt_size_t NULL-&gt;RT_NULL</content>
</entry>
<entry>
<title>[bsp][stm32] Modify variable name p_tm to tm</title>
<updated>2021-12-10T08:25:40Z</updated>
<author>
<name>iysheng</name>
<email>iysheng@163.com</email>
</author>
<published>2021-12-10T08:25:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b6d90dffcfcf4339166c38d32a626459b4bfada3'/>
<id>urn:sha1:b6d90dffcfcf4339166c38d32a626459b4bfada3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp][stm32] Replace gmtime with gmtime_r</title>
<updated>2021-10-01T08:41:21Z</updated>
<author>
<name>iysheng</name>
<email>iysheng@163.com</email>
</author>
<published>2021-10-01T08:41:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=dbaad29e04b985b6ea9a85d1766da8f18bfa0584'/>
<id>urn:sha1:dbaad29e04b985b6ea9a85d1766da8f18bfa0584</id>
<content type='text'>
Signed-off-by: iysheng &lt;iysheng@163.com&gt;
</content>
</entry>
</feed>
