From df3db0b978b1cab3555d6878a274b0f382bf707c Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期一, 01 十月 2018 15:42:49 +0800 Subject: [PATCH] 标签开机死机bug改好,基站增加软件超时复位 --- 源码/核心板/Src/application/dw_app.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" index ef8d58c..2499fa3 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" @@ -263,7 +263,7 @@ } void Dw1000_App_Init(void) { - g_com_map[DEV_ID]=0x00; + g_com_map[DEV_ID]=0x03; tx_poll_msg[MESSAGE_TYPE_IDX]=POLL; tx_resp_msg[MESSAGE_TYPE_IDX]=RESPONSE; tx_final_msg[MESSAGE_TYPE_IDX]=FINAL; @@ -284,7 +284,7 @@ uint32_t final_tx_time; GPIO_ResetBits(SPIx_GPIO, SPIx_CS); - delay_us(250); + delay_us(2500); GPIO_SetBits(SPIx_GPIO, SPIx_CS); /* Write frame data to DW1000 and prepare transmission. See NOTE 7 below. */ @@ -372,7 +372,7 @@ dwt_entersleep(); } - +uint16_t g_Resttimer; void Anchor_App(void) { uint32_t frame_len; @@ -389,6 +389,7 @@ { UART_CheckReceive(); UART_CheckSend(); + g_Resttimer=0; }; if (status_reg & SYS_STATUS_RXFCG)//成功接收 -- Gitblit v1.9.3