We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066cd03 commit 20eeae1Copy full SHA for 20eeae1
src/encoders/tle5012b/STM32TLE5012B.cpp
@@ -102,7 +102,9 @@ void TLE5012B::init() {
102
_spi.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
103
_spi.Init.CRCPolynomial = 7;
104
_spi.Init.TIMode = SPI_TIMODE_DISABLE;
105
+ #if defined(SPI_NSS_PULSE_DISABLE)
106
_spi.Init.NSSPMode = SPI_NSS_PULSE_DISABLE;
107
+ #endif
108
109
uint32_t spi_freq = spi_getClkFreqInst(spi_inst);
110
if (_freq >= (spi_freq / SPI_SPEED_CLOCK_DIV2_MHZ)) {
0 commit comments