mirror of https://github.com/rusefi/ChibiOS.git
Changed SPI select mode in the STM32/STM32F4xx/SPI-ADXL355 demo
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13683 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
6740b61022
commit
c03b30b6fe
|
@ -471,7 +471,7 @@
|
||||||
* @note Disabling this option saves both code and data space.
|
* @note Disabling this option saves both code and data space.
|
||||||
*/
|
*/
|
||||||
#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
|
#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
|
||||||
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
|
#define SPI_SELECT_MODE SPI_SELECT_MODE_LINE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -44,8 +44,7 @@ static uint32_t i;
|
||||||
static const SPIConfig spicfg = {
|
static const SPIConfig spicfg = {
|
||||||
FALSE,
|
FALSE,
|
||||||
NULL,
|
NULL,
|
||||||
GPIOB,
|
LINE_ARD_D10,
|
||||||
6,
|
|
||||||
SPI_CR1_BR_1 | SPI_CR1_BR_0,
|
SPI_CR1_BR_1 | SPI_CR1_BR_0,
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue