From f821dce82730e142b3b655139a687f79aa3b89bb Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期三, 25 九月 2024 19:38:10 +0800 Subject: [PATCH] 加大了超时时间,去掉和手环校准 --- keil/include/main/main.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/keil/include/main/main.c b/keil/include/main/main.c index b03f1aa..8482d1b 100644 --- a/keil/include/main/main.c +++ b/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 = { .parity = UART_PARITY_NONE, @@ -178,7 +178,7 @@ group_id=g_com_map[GROUP_ID]; memcpy(&dev_id ,&g_com_map[DEV_ID],2); tag_frequence=1000/g_com_map[COM_INTERVAL]; -g_com_map[VERSION] = (1<<8)|6; +g_com_map[VERSION] = (1<<8)|3; LOG_INFO(TRACE_MODULE_APP,"设备ID: %x .\r\n",dev_id); LOG_INFO(TRACE_MODULE_APP,"固件版本:UWB-标签 V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff); } @@ -220,7 +220,7 @@ { board_clock_run(); boot_deinit(); - board_pins_config(); + board_pins_config(); board_debug_console_open(TRACE_PORT_UART0); // Reset reason reset_cause_get(); @@ -266,9 +266,11 @@ //sleep_timer_start(__MS_TO_32K_CNT(g_com_map[COM_INTERVAL]));//测试 sleep_timer_start(__MS_TO_32K_CNT(500));//测试 //board_5V_input_init(voltage_input_handler);//有修改3.3V会一直高电平导致无法进入休眠 -// io_pin_mux_set(IO_PIN_5, IO_FUNC0);//波形测试 -// gpio_pin_set_dir( IO_PIN_5, GPIO_DIR_OUT, 0); -// io_pull_set(IO_PIN_5 , IO_PULL_DOWN, IO_PULL_UP_LEVEL4); + #ifdef BOXING + io_pin_mux_set(IO_PIN_5, IO_FUNC0);//波形测试 + gpio_pin_set_dir( IO_PIN_5, GPIO_DIR_OUT, 0); + io_pull_set(IO_PIN_5 , IO_PULL_DOWN, IO_PULL_UP_LEVEL4); + #endif //Serial0_PutString("进入app测试\r\n"); while (1) { -- Gitblit v1.9.3