From 12c64dd79ad5069e9e6ae50d7ee688edafe84f0f Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 14 十一月 2019 17:41:29 +0800 Subject: [PATCH] 控制完成,纹波过大 --- 源码/核心板/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 f4f65eb..44c881a 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(SPI_BaudRatePrescaler_64); //设置为快速模式 + Spi_ChangePrescaler(SPIx_PRESCALER_SLOW); //设置为快速模式 dwt_initialise(DWT_LOADUCODE);//初始化DW1000 - Spi_ChangePrescaler(SPI_BaudRatePrescaler_32); //设置为快速模式 + Spi_ChangePrescaler(SPI_BaudRatePrescaler_8); //设置为快速模式 /* Configure DW1000. See NOTE 6 below. */ dwt_configure(&config);//配置DW1000 -- Gitblit v1.9.3