[riot-notifications] [RIOT-OS/RIOT] RTC for stm32f1 (#11258)

Former notifications at github.com
Wed Mar 27 10:42:14 CET 2019


Former commented on this pull request.



> +}
+
+int rtc_set_time(struct tm *time)
+{
+    _rtc_set_counter_val(_rtc_get_count_from_time(time));
+    return 0;
+}
+
+int rtc_get_time(struct tm *time)
+{
+    uint32_t time_count_val = rtc_get_counter_val();
+    _rtc_get_time_from_count(time_count_val, time);
+    return 0;
+}
+
+int rtc_set_alarm(struct tm *time, rtc_alarm_cb_t cb, void *arg)

I use RTC only for wake up after turn off. Not use callback.
Now callback work fine.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11258#discussion_r269474514
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190327/d3de1849/attachment.html>


More information about the notifications mailing list