keil/include/main/main.c
@@ -63,7 +63,7 @@ #define NUM_SAMPLES 1 #define SLEEP_START_TIME 120 uint8_t enable_sleep_count,sleep_flag; //#define DEBUG_MODE #define DEBUG_MODE struct UART_CFG_T test_uart_cfg = { @@ -263,6 +263,7 @@ //adc_open(&usr_adc_cfg); //adc_get(&sample[0], NUM_SAMPLES, adc_callback);//adc采样 // Enable sleep timer Tag_uwb_init(); 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_time_count));//测试