aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32F4xx/SPI-LIS302DL/main.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-01-14 11:19:39 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-01-14 11:19:39 +0000
commitb28c62685d857b55dd8bc7e759a9f93ab0a51632 (patch)
treecc3285cdd4c1b4ec07340784f0c9087efa5c9a02 /testex/STM32/STM32F4xx/SPI-LIS302DL/main.c
parentf6b807fd5a089607a1e21dbcad3c060363650fa1 (diff)
downloadChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.tar.gz
ChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.tar.bz2
ChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.zip
Updated EX demos to be compliant with latest ChibiOS/HAL edit
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11273 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testex/STM32/STM32F4xx/SPI-LIS302DL/main.c')
-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
};