hardware_rtc: make rtc_enable_alarm public

This commit is contained in:
graham sanderson
2021-02-27 19:25:49 -06:00
parent 4904fe2e32
commit 8ada5fa7eb
2 changed files with 6 additions and 1 deletions

View File

@ -103,7 +103,7 @@ bool rtc_get_datetime(datetime_t *t) {
return true;
}
static void rtc_enable_alarm(void) {
void rtc_enable_alarm(void) {
// Set matching and wait for it to be enabled
hw_set_bits(&rtc_hw->irq_setup_0, RTC_IRQ_SETUP_0_MATCH_ENA_BITS);
while(!(rtc_hw->irq_setup_0 & RTC_IRQ_SETUP_0_MATCH_ACTIVE_BITS)) {