| | |
| | | #include "gpio.h" |
| | | #include "uart.h" |
| | | #include "eeprom.h" |
| | | |
| | | |
| | | #include "extern_rtc.h" |
| | | #include "system_general_para.h" |
| | | |
| | | |
| | | |
| | |
| | | void GPIO_IRQHandler(void) |
| | | { |
| | | // if(__SYS_DELAY_SEC_FLAG_GET(sys_active_time) == SET && LargeCurrent_LimitingProcess() == 3) |
| | | // SysWakeUp_ClockCfg(); |
| | | // if(GPIO_EXTI_EXTIISR_ChkEx(KEYA_S1_PORT, KEYA_S1_PIN) == SET) |
| | | // { |
| | | // GPIO_EXTI_EXTIISR_ClrEx(KEYA_S1_PORT, KEYA_S1_PIN); |
| | | // GPIO_EXTI_Close(KEYA_S1_PORT,KEYA_S1_PIN); |
| | | // InfraRed_Uart0_Clk_Init(); |
| | | // Key_Awaken_Init(); |
| | | // Botton_LPTimer_Clk_Init(); |
| | | // LPTIM_CR_EN_Setable(ENABLE); |
| | | //#ifdef RS232_PRINTF |
| | | // printf("KEYA_EXTI\r\n"); |
| | | //#endif |
| | | // __SYS_DELAY_SEC_FLAG_CLEAR_(sys_active_time); // Çå³ýϵͳ¼¤»îʱ¼ä±ê־λ |
| | | // pwr_vol_g.lith_flag = LMS_KEY; // »½ÐѺóÁ¢Âí²É¼¯Ò»´ÎµçÁ¿ |
| | | // pwr_vol_g.alka_flag = AMS_KEY; |
| | | // if(GPIO_ReadOutputDataBit(LCD_PWR_GPIO_PORT,LCD_PWR_PIN) == Bit_RESET) |
| | | // Lcd_Sys_Init(); // °´¼ü»½ÐÑÆÁÄ» |
| | | // } |
| | | SysWakeUp_ClockCfg(); |
| | | if(GPIO_EXTI_EXTIISR_ChkEx(EXT_RTC_INT_PORT, EXT_RTC_INT_PIN) == SET) |
| | | { |
| | | GPIO_EXTI_EXTIISR_ClrEx(EXT_RTC_INT_PORT, EXT_RTC_INT_PIN); |
| | | sys_run_period = SET; |
| | | |
| | | } |
| | | // if(GPIO_EXTI_EXTIISR_ChkEx(VALVE_FORCED_OPEN_PORT, VALVE_FORCED_OPEN_PIN) == SET) |
| | | // { |
| | | // GPIO_EXTI_EXTIISR_ClrEx(VALVE_FORCED_OPEN_PORT, VALVE_FORCED_OPEN_PIN); |