| | |
| | | |
| | | |
| | | |
| | | void ErrorConfig_Handler(void) |
| | | void CommapErrorCheck(void) |
| | | { |
| | | if(g_com_map[COM_INTERVAL]==0||g_com_map[COM_INTERVAL]>1000) |
| | | { |
| | |
| | | hardware_pici= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2); |
| | | hardware_type= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4); |
| | | //deca_sleep(1000); |
| | | g_com_map[VERSION] = (2<<8)|71; |
| | | g_com_map[VERSION] = (2<<8)|85; |
| | | |
| | | // g_com_map[DEV_ID]=0x7; |
| | | #ifdef DEBUG_MODE |
| | |
| | | //g_com_map[NOMOVESLEEP_TIME]=10; |
| | | // g_com_map[IMU_ENABLE]=0; |
| | | // g_com_map[COM_INTERVAL]=50; |
| | | CommapErrorCheck(); |
| | | active_flag = g_com_map[ACTIVE_INDEX]; |
| | | |
| | | //g_com_map[HEIGHTOFFEST_INDEX]=g_com_map[MAX_REPORT_ANC_NUM]; |
| | |
| | | HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); |
| | | #endif |
| | | } |
| | | if(g_start_send_flag&&active_flag&&uwb_active_flag) |
| | | if(g_start_send_flag&&active_flag/*&&uwb_active_flag*/) |
| | | { static uint16_t blink_count=0; |
| | | g_start_send_flag = 0; |
| | | // GetPressAndTemp(); |