/* Set the current calendar time to desired time. 
Sets the time provided to the calendar. */
void rtc_calendar_set_time(struct rtc_module *const module, const struct rtc_calendar_time *const time)
/* Set the current calendar time to desired time. 
Sets the time provided to the calendar. */
void rtc_calendar_set_time(struct rtc_module *const module, const struct rtc_calendar_time *const time)
{
	Assert(module);
	Assert(module->hw);
	Rtc *const rtc_module = module->hw;
	uint32_t register_value = rtc_calendar_time_to_register_value(module, time);
	while (rtc_calendar_is_syncing(module)) {
	}
	rtc_module->MODE2.CLOCK.reg = register_value;
}