| | |
| | | #include "HIDO_Timer.h" |
| | | #include "TCPClient.h" |
| | | |
| | | //#define DEBUG_MODE |
| | | #define DEBUG_MODE |
| | | extern int simple_main(void); |
| | | extern int temp_main(void); |
| | | #define TEST_UART_POLL_MODE 0 |
| | |
| | | green_charge_state=0; |
| | | charge_red_on(); |
| | | } |
| | | UWBPoll(); |
| | | |
| | | charge_state_change();//充电状态判断 |
| | | if(secondtask_count++%2==0) |
| | | { |
| | |
| | | //AIR780E_Reset(); //4G模块重启,耗时1.5秒,这个是无法同步的关键 |
| | | sleep_timer_open(true, SLEEP_TIMER_MODE_RELOAD, sleep_timer_callback); |
| | | //sleep_timer_start(__MS_TO_32K_CNT(g_com_map[COM_INTERVAL]));//测试 |
| | | sleep_timer_start(__MS_TO_32K_CNT(SLEEP_TIMER_NUM));//测试 |
| | | // sleep_timer_start(__MS_TO_32K_CNT(SLEEP_TIMER_NUM));//测试 |
| | | // board_5V_input_init(voltage_input_handler); |
| | | adc_get(&sample[0], NUM_SAMPLES, adc_callback);//adc采样 |
| | | board_acceleration_detection_init(move_handler); |
| | |
| | | board_4GUsart_detection_init(_4gUsart_handler); |
| | | while (1) |
| | | { test4=gpio_pin_get_val(SCL_PIN); |
| | | |
| | | UWBPoll(); |
| | | // if(!power_low_flag)//确认是否休眠下才开启功能 |
| | | // { |
| | | // if(flag_TCP_reconnectting||IfTCPConnected()) |