From 45511597788e2eea3abb66f9363682cf1ed96caa Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期一, 04 十一月 2019 20:02:02 +0800 Subject: [PATCH] 串口和DW ID正常 --- 源码/核心板/Src/application/dw_app.c | 4 ++-- 1 files changed, 2 insertions(+), 2 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 6825d03..f4f65eb 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" @@ -251,9 +251,9 @@ * For initialisation, DW1000 clocks must be temporarily set to crystal speed. After initialisation SPI rate can be increased for optimum * performance. */ Reset_DW1000();//重启DW1000 /* Target specific drive of RSTn line into DW1000 low for a period. */ - Spi_ChangePrescaler(SPIx_PRESCALER_SLOW); //设置为快速模式 + Spi_ChangePrescaler(SPI_BaudRatePrescaler_64); //设置为快速模式 dwt_initialise(DWT_LOADUCODE);//初始化DW1000 - Spi_ChangePrescaler(SPIx_PRESCALER_FAST); //设置为快速模式 + Spi_ChangePrescaler(SPI_BaudRatePrescaler_32); //设置为快速模式 /* Configure DW1000. See NOTE 6 below. */ dwt_configure(&config);//配置DW1000 -- Gitblit v1.9.3