1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32: fix periph_rtt

For some reason rtt_get_alarm was never implemented. This adds the
missing function.
This commit is contained in:
Marian Buschsieweke 2021-03-03 17:02:59 +01:00
parent bf93d85d4e
commit 720b350f6f
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -185,6 +185,11 @@ void rtt_set_alarm(uint32_t alarm, rtt_cb_t cb, void *arg)
irq_restore(is);
}
uint32_t rtt_get_alarm(void)
{
return LPTIM1->CMP;
}
void rtt_clear_alarm(void)
{
to_cb = NULL;