Francisco Molina
66a8922f8c
cpu: initial support for stm32wb
2020-03-25 09:29:56 +01:00
Benjamin Valentin
b1724a7d1b
periph/rtc: normalize struct tm before usage
...
A naive implementation may set a RTC alarm in 30s by calling
struct tm now;
rtc_get_time(&now);
now.tm_sec += 30;
rtc_set_alarm(&now, _cb, NULL);
This works for RTC implementations that use a RTT internally and call
mktime() to convert the struct tm to a unix timestamp, as mktime() will
normalize the struct in the process.
Call rtc_tm_normalize() when the RTC uses separate registers for time / date
components to ensure it is normalized.
This also modifies tests/periph_rtc to exercise this case.
2019-09-12 11:32:31 +02:00
Vincent Dupont
d283aaf8fd
cpu/stm32_common: fix month encoding in RTC driver for alarm
2019-04-04 14:15:26 +02:00
Vincent Dupont
38b9ed1cac
cpu/stm32_common: fix month encoding in RTC driver
2019-04-01 16:50:56 +02:00
9efd3c3660
stm32_common/rtc: reset RTC when clock source changed
2019-03-29 11:36:07 +01:00
Hauke Petersen
87200c4803
cpu/stm32: removed file guards from periph drivers
2017-11-09 16:27:24 +01:00
Hauke Petersen
8b150624ed
cpu/stm32: reworked the RTC driver implementation
2017-08-24 15:32:27 +02:00
Hauke Petersen
768459d6c1
Merge pull request #7420 from MichelRottleuthner/rtc_stm32l4
...
periph/rtc: add support for stm32l4
2017-08-21 10:10:26 +02:00
MichelRottleuthner
0a9383228e
stm32_common/periph/rtc: fix wrong read order of rtc regs, add wait for calender sync to rtc_set_time
2017-08-07 16:35:56 +02:00
MichelRottleuthner
87c1c96a13
stm32_common/periph/rtc: fix RTSR_TR17 reg name
2017-07-31 13:43:45 +02:00
MichelRottleuthner
ffd4d9280e
stm32_common/periph/rtc: add support for stm32l4
2017-07-26 21:52:35 +02:00
smlng
692cf96297
doc: fix doxygen grouping of cpu periph drivers
2017-06-26 14:42:11 +02:00
joris
6a5da1c1f7
cpu/stm32-common: add RTC support to stm32l0
...
Signed-off-by: joris <laborde.joris@gmail.com>
2017-06-02 20:03:09 +02:00
Vincent Dupont
460608cc7a
cpu/stm32_common: add support of stm32f7 to RTC driver
2017-05-17 15:32:42 +02:00
Vincent Dupont
05475f9600
cpu/stm32_common: unified RTC driver
2017-01-24 15:16:47 +01:00