示例#1
0
rtccRes RTCC_Open(unsigned long tm, unsigned long dt, int drift)
{
	RTCC_SOSCenable();
	RTCC_SetTime(tm);
	RTCC_SetDate(dt);
	RTCC_SetCalibration(drift);
	RTCC_Enable();
	RTCC_AlarmDisable();
	RTCC_OutputDisable();
	RTCC_SetWriteDisable();
	IntClearFlag(INT_REAL_TIME_CLOCK);
}
示例#2
0
void RTCC_SetAlarmTimeDate(u32 alTime, u32 alDate)
{
    RTCC_SetTime(alTime);
    RTCC_SetDate(alDate);
}