diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-09-30 14:37:45 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-09-30 14:37:45 +0000 |
commit | 638d27eabf74c2ea7f12f61336836f467a52d05b (patch) | |
tree | 07ce1a805a20beda5a12b69307c25f5112b4b5bb /testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h | |
parent | 52bdd5d866ddb47a6251957168d2750a73417aaf (diff) | |
download | ChibiOS-638d27eabf74c2ea7f12f61336836f467a52d05b.tar.gz ChibiOS-638d27eabf74c2ea7f12f61336836f467a52d05b.tar.bz2 ChibiOS-638d27eabf74c2ea7f12f61336836f467a52d05b.zip |
Improved LIS3DSH driver and related demos: improved bias and sensitivity handling.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9830 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h')
-rw-r--r-- | testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h b/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h index 0d478ebf8..9617cff3f 100644 --- a/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h +++ b/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h @@ -44,7 +44,11 @@ #define STM32_CLOCK48_REQUIRED TRUE
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSE
+#if defined(BOARD_ST_STM32F4_DISCOVERY)
#define STM32_PLLM_VALUE 8
+#else
+#define STM32_PLLM_VALUE 12
+#endif
#define STM32_PLLN_VALUE 336
#define STM32_PLLP_VALUE 2
#define STM32_PLLQ_VALUE 7
@@ -264,8 +268,8 @@ * SPI driver system settings.
*/
#define STM32_SPI_USE_SPI1 TRUE
-#define STM32_SPI_USE_SPI2 TRUE
-#define STM32_SPI_USE_SPI3 TRUE
+#define STM32_SPI_USE_SPI2 FALSE
+#define STM32_SPI_USE_SPI3 FALSE
#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 0)
#define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 3)
#define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
|