Revision | 13683 (tree) |
---|---|
Zeit | 2020-06-02 21:56:31 |
Autor | roccomarco |
Changed SPI select mode in the STM32/STM32F4xx/SPI-ADXL355 demo
@@ -471,7 +471,7 @@ | ||
471 | 471 | * @note Disabling this option saves both code and data space. |
472 | 472 | */ |
473 | 473 | #if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__) |
474 | -#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | |
474 | +#define SPI_SELECT_MODE SPI_SELECT_MODE_LINE | |
475 | 475 | #endif |
476 | 476 | |
477 | 477 | /*===========================================================================*/ |
@@ -44,8 +44,7 @@ | ||
44 | 44 | static const SPIConfig spicfg = { |
45 | 45 | FALSE, |
46 | 46 | NULL, |
47 | - GPIOB, | |
48 | - 6, | |
47 | + LINE_ARD_D10, | |
49 | 48 | SPI_CR1_BR_1 | SPI_CR1_BR_0, |
50 | 49 | 0 |
51 | 50 | }; |