From 7742d3182f57e7aad7900e70314f53d761937c51 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期三, 12 二月 2025 09:23:04 +0800 Subject: [PATCH] 1.27,加入了uwb初始化过了才会触发中断。uwb初始化的时候复位拉低1000ms --- Src/ExternalDevices/dw_driver.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Src/ExternalDevices/dw_driver.c b/Src/ExternalDevices/dw_driver.c index bb5dfc4..0ec03dd 100644 --- a/Src/ExternalDevices/dw_driver.c +++ b/Src/ExternalDevices/dw_driver.c @@ -24,7 +24,7 @@ //drive the RSTn pin low // GPIO_ResetBits(DW1000_RSTn_GPIO, DW1000_RSTn); -deca_sleep(100); +delay_ms(1000); //put the pin back to tri-state ... as input GPIO_InitStruct.Pin = DW1000_RSTn; GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; @@ -32,7 +32,15 @@ GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(DW1000_RSTn_GPIO, &GPIO_InitStruct); - deca_sleep(2); +// deca_sleep(2); +// HAL_GPIO_WritePin(DW1000_RSTn_GPIO, DW1000_RSTn, GPIO_PIN_SET); +// GPIO_InitStruct.Pin = DW1000_RSTn; +// GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; +// GPIO_InitStruct.Pull = GPIO_NOPULL; +// GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; +// HAL_GPIO_Init(DW1000_RSTn_GPIO, &GPIO_InitStruct); + +// deca_sleep(2); } //void DW_GPIO_Init(void) -- Gitblit v1.9.3