| | |
| | | #include "power_manage.h" |
| | | #include "pulse_and_alarm_line.h" |
| | | #include "billing.h" |
| | | #include "linked_list.h" |
| | | |
| | | |
| | | FlagStatus key_awaken_flag_g = RESET; |
| | |
| | | if(Get_Extern_Rtc_Time(&sys_clockBCD_g) ==FAIL) //»ñȡʱ¼ä |
| | | { |
| | | //?RTCʱ¼äÒì³£±¨¾¯ |
| | | __SYS_STATUS_ALARM_BYTES_SET(rtc_err); |
| | | if(__SYS_ALARM_CTL_BYTES_GET(rtc_err) == SET) |
| | | __SYS_STATUS_ALARM_BYTES_SET(rtc_err,ALARM_ID_RTC_BAT_LOW); |
| | | } |
| | | |
| | | /*°´¼üʶ±ð*/ |
| | |
| | | for(uint8_t count_i=0;count_i<(PULSE_CHECK_DELAY_MS &0xff);count_i++){ |
| | | delay_ms(1); |
| | | if(pulse_exti_flag == RESET) |
| | | break; |
| | | |
| | | } |
| | | |
| | | //ÐÝÃß |
| | | break; |
| | | } |
| | | } |
| | | //ÐÝÃß |
| | | |
| | | |
| | | } |
| | | |