/* Disables callback. 
Disables the callback specified by the callback_type. */
void rtc_calendar_disable_callback(struct rtc_module *const module, enum rtc_calendar_callback callback_type)
/* Disables callback. 
Disables the callback specified by the callback_type. */
void rtc_calendar_disable_callback(struct rtc_module *const module, enum rtc_calendar_callback callback_type)
{
	Assert(module);
	Assert(module->hw);
	Rtc *const rtc_module = module->hw;
	if (callback_type == RTC_CALENDAR_CALLBACK_OVERFLOW) {
		rtc_module->MODE2.INTENCLR.reg = RTC_MODE2_INTFLAG_OVF;
	} else {
		rtc_module->MODE2.INTENCLR.reg = RTC_MODE2_INTFLAG_ALARM(1 << callback_type);
	}
	module->enabled_callback &= ~(1 << callback_type);
}