From 6c841ad18a86f1f075340577c0e43ea433bce427 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期五, 01 十一月 2024 19:16:27 +0800 Subject: [PATCH] 1.20,等待现场测试一下 --- Src/application/dw_app.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c index 9c7f9cb..25c2388 100644 --- a/Src/application/dw_app.c +++ b/Src/application/dw_app.c @@ -104,15 +104,15 @@ /* Configure DW1000. See NOTE 6 below. */ dwt_configure(&config);//配置DW1000 -// dwt_setinterrupt( DWT_INT_RFCG | (DWT_INT_ARFE | DWT_INT_RFSL | DWT_INT_SFDT | DWT_INT_RPHE | DWT_INT_RFCE | DWT_INT_RFTO | DWT_INT_RXPTO), 1); + dwt_setinterrupt( DWT_INT_RFCG | (DWT_INT_ARFE | DWT_INT_RFSL | DWT_INT_SFDT | DWT_INT_RPHE | DWT_INT_RFCE | DWT_INT_RFTO | DWT_INT_RXPTO), 1); /* Apply default antenna delay value. See NOTE 1 below. */ dwt_setrxantennadelay(RX_ANT_DLY); //设置接收天线延迟 dwt_settxantennadelay(TX_ANT_DLY); //设置发射天线延迟 -// dwt_setrxtimeout(1000);//设定接收超时时间,0位没有超时时间 -// dwt_rxenable(0);//打开接收 + dwt_setrxtimeout(1000);//设定接收超时时间,0位没有超时时间 + dwt_rxenable(0);//打开接收 // uwbid=dwt_readdevid(); /* Set expected response's delay and timeout. See NOTE 4 and 5 below. * As this example only handles one incoming frame with always the same delay and timeout, those values can be set here once for all. */ -- Gitblit v1.9.3