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:
parent
bf93d85d4e
commit
720b350f6f
@ -185,6 +185,11 @@ void rtt_set_alarm(uint32_t alarm, rtt_cb_t cb, void *arg)
|
|||||||
irq_restore(is);
|
irq_restore(is);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t rtt_get_alarm(void)
|
||||||
|
{
|
||||||
|
return LPTIM1->CMP;
|
||||||
|
}
|
||||||
|
|
||||||
void rtt_clear_alarm(void)
|
void rtt_clear_alarm(void)
|
||||||
{
|
{
|
||||||
to_cb = NULL;
|
to_cb = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user