}
}
Flag_Button = 0;
/*------------------------刷新时间扫描处理------------------------*/ while(Flag_ShowTime) {
Flag_ShowTime = 0;
if((Function_State == State_Clock) | (Function_State == State_AdjustAlarmHour) | (Function_State == State_AdjustAlarmMinute) ) { }
switch(Function_State) {
RealtimeClock_ShowCurrentTime();
case State_AdjustAlarmHour: LCD1602_SetCursorPosition(1,1);
break;
case State_AdjustAlarmMinute: LCD1602_SetCursorPosition(4,1);
break;
}
/*------------------------闹钟开关扫描处理------------------------*/ while(Flag_Alarm) {
Flag_Alarm = 0;
if((CurrentTime[2] == AlarmHour)&&(CurrentTime[1] == AlarmMinute)) {
if(Flag_ManualOperation) { }
Flag_ShowTime = 0;
default:break;
45
}
}
}
}
}
Flag_buzzer = 1;//置位闹钟提示标志变量
else { }
Flag_buzzer = 0;//置位闹钟提示标志变量
else if((CurrentTime[0] == 0x00)&&(CurrentTime[1] == 0x00)) { }
else if((CurrentTime[0] >= 0x01)&&(CurrentTime[1] == 0x00)) { } else { }
Flag_Alarm = 0;
Flag_buzzer = 0;//清零闹钟提示标志变量 BuzzePhone_Switch(0);//关闭蜂鸣器 BuzzePhone_Switch(0);//关闭蜂鸣器
BuzzePhone_Switch(1);//打开蜂鸣器
while(Flag_buzzer) { }
Flag_buzzer = 0;//清零闹钟提示标志变量 BuzzePhone_Tick(4,800);//闹钟3下提示声 Flag_buzzer = 0;//清零闹钟提示标志变量
46