| | |
| | | } |
| | | while(HAL_GPIO_ReadPin(INPUT_5V_GPIO_Port,INPUT_5V_Pin)&&DBG_GetMode() == DBG_MODE_CHARGE) |
| | | { |
| | | nomove_count = 0; |
| | | HAL_IWDG_Refresh(&hiwdg); |
| | | DBG_Poll(); |
| | | IdleTask(); |
| | |
| | | //deca_sleep(1000); |
| | | |
| | | g_com_map[GROUP_ID]=3; |
| | | g_com_map[VERSION] = (2<<8)|8; |
| | | g_com_map[VERSION] = (2<<8)|11; |
| | | |
| | | if (g_com_map[COM_INTERVAL] <50) |
| | | { |
| | |
| | | { |
| | | {g_com_map[CHAICHUGPS_HZ]=600;} |
| | | } |
| | | g_com_map[CHAICHUGPS_HZ]=1800; |
| | | if(g_com_map[NOMOVESLEEP_TIME]>120) |
| | | { |
| | | g_com_map[NOMOVESLEEP_TIME]=120; |
| | |
| | | { |
| | | Stop_Mode_Poll(); |
| | | HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); |
| | | if(sleep_time>600) |
| | | if(sleep_time>1800) |
| | | {HAL_NVIC_SystemReset();} |
| | | } |
| | | else |