aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32F4xx/SPI-LIS302DL
diff options
context:
space:
mode:
Diffstat (limited to 'testex/STM32/STM32F4xx/SPI-LIS302DL')
-rw-r--r--testex/STM32/STM32F4xx/SPI-LIS302DL/main.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/testex/STM32/STM32F4xx/SPI-LIS302DL/main.c b/testex/STM32/STM32F4xx/SPI-LIS302DL/main.c
index a72814c3d..a831e465d 100644
--- a/testex/STM32/STM32F4xx/SPI-LIS302DL/main.c
+++ b/testex/STM32/STM32F4xx/SPI-LIS302DL/main.c
@@ -38,22 +38,23 @@ static char axisID[LIS302DL_NUMBER_OF_AXES] = {'X', 'Y', 'Z'};
static uint32_t i;
static const SPIConfig spicfg = {
+ FALSE,
NULL,
- GPIOE, /* port of LIS302DL CS.*/
- GPIOE_CS_SPI, /* pin of LIS302DL CS.*/
- SPI_CR1_BR_0 | SPI_CR1_CPOL | SPI_CR1_CPHA,/* CR1 register.*/
- 0 /* CR2 register.*/
+ GPIOE,
+ GPIOE_CS_SPI,
+ SPI_CR1_BR_0 | SPI_CR1_CPOL | SPI_CR1_CPHA,
+ 0
};
static LIS302DLConfig l3gd20cfg = {
- &SPID1, /* Pointer to SPI Driver.*/
- &spicfg, /* Pointer to SPI Configuration.*/
- NULL, /* Use default sensitivity.*/
- NULL, /* Use default bias.*/
- LIS302DL_FS_2G, /* Full scale value.*/
- LIS302DL_ODR_100HZ, /* Output data rate.*/
+ &SPID1,
+ &spicfg,
+ NULL,
+ NULL,
+ LIS302DL_FS_2G,
+ LIS302DL_ODR_100HZ,
#if LIS302DL_USE_ADVANCED || defined(__DOXYGEN__)
- LIS302DL_HP_DISABLED, /* HP filter disabled.*/
+ LIS302DL_HP_DISABLED,
#endif
};