forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-05-22 66ea95dcb8fd91d29465c2f11ced4dd6153a2504
Soft/system_general_para.c
@@ -8,8 +8,8 @@
__IO FlagStatus sys_run_period = RESET; // ÏµÍ³¼¤»îÖÜÆÚ
SYS_DELAY_SEC_PARA_T sys_delay_sec_para_g = { .gprs_timeout_para.delay_flag = RESET,  \
      .gprs_timeout_para.delay_time = 0,   \
SYS_DELAY_SEC_PARA_T sys_delay_sec_para_g = { .wrc_timeout_para.delay_flag = RESET,  \
      .wrc_timeout_para.delay_time = 0,   \
      .sys_active_time.delay_flag = RESET,    \
      .sys_active_time.delay_time = SYS_WAKE_UP_TIME,   \
      .sys_restart_delay_time.delay_flag = RESET,    \
@@ -143,4 +143,25 @@
   }
   
   return RESET;
}
}
//IO¿ÚÑÓ³ÙÏû¶¶¼ì²â
FlagStatus IO_JitterEliminationCheck(GPIO_Type* GPIOx, uint32_t GPIO_Pin,uint16_t delay_time_ms,BitAction bit_status)
{
   if(delay_time_ms>1000)  //Ŀǰ×î´ó¼ì²â1000msÑÓʱ£¬Ì«´ó×îϵͳÔì³ÉÓ°Ïì
      return RESET;
   if(GPIO_ReadInputDataBit(GPIOx, GPIO_Pin) == bit_status){
      if(delay_time_ms > 0)
         delay_ms(delay_time_ms);
      if(GPIO_ReadInputDataBit(GPIOx, GPIO_Pin) == bit_status){
         return SET;
      }else{
         return RESET;
      }
   }else{
      return RESET;
   }
}