/* Enables callback. 
Enables the callback specified by the callback_type. */
void rtc_count_enable_callback(struct rtc_module *const module, enum rtc_count_callback callback_type)
/* Enables callback. 
Enables the callback specified by the callback_type. */
void rtc_count_enable_callback(struct rtc_module *const module, enum rtc_count_callback callback_type)
{
	Assert(module);
	Assert(module->hw);
	Rtc *const rtc_module = module->hw;
	if (callback_type == RTC_COUNT_CALLBACK_OVERFLOW) {
		rtc_module->MODE0.INTENSET.reg = RTC_MODE0_INTFLAG_OVF;
	} else {
		rtc_module->MODE0.INTENSET.reg = RTC_MODE1_INTFLAG_CMP(1 << callback_type);
	}
	module->enabled_callback |= (1 << callback_type);
}