15.9.1.3 Implementation

Add the following to main().
while (true) {
    if (rtc_calendar_is_alarm_match(&rtc_instance, RTC_CALENDAR_ALARM_0)) {
        /* Do something on RTC alarm match here */
        port_pin_toggle_output_level(LED_0_PIN);

        rtc_calendar_clear_alarm_match(&rtc_instance, RTC_CALENDAR_ALARM_0);
    }
}