14.10.1.3.1 Code
Add after initialization in main().
rtc_count_set_period(&rtc_instance, 2000);
while
(
true
) {
if
(rtc_count_is_compare_match(&rtc_instance, RTC_COUNT_COMPARE_0)) {
/* Do something on RTC count match here */
port_pin_toggle_output_level(LED_0_PIN);
rtc_count_clear_compare_match(&rtc_instance, RTC_COUNT_COMPARE_0);
}
}