diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-09-03 15:48:09 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-09-03 15:48:09 +0000 |
commit | 9d9a04e4645b9f4b70e74dd4245a1412e82c902a (patch) | |
tree | fd48c875d30f2895654697ef6562c19dd6189282 /os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c | |
parent | 4b148d3cbcd338dd5d72fac683e712f448d08341 (diff) | |
download | ChibiOS-9d9a04e4645b9f4b70e74dd4245a1412e82c902a.tar.gz ChibiOS-9d9a04e4645b9f4b70e74dd4245a1412e82c902a.tar.bz2 ChibiOS-9d9a04e4645b9f4b70e74dd4245a1412e82c902a.zip |
SPI driver improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10545 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c')
-rw-r--r-- | os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c b/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c index faa5fa1cc..6adc0b920 100644 --- a/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.c @@ -478,6 +478,7 @@ void spi_lld_stop(SPIDriver *spip) { }
}
+#if (SPI_SELECT_MODE == SPI_SELECT_MODE_LLD) || defined(__DOXYGEN__)
/**
* @brief Asserts the slave select signal and prepares for transfers.
*
@@ -487,7 +488,7 @@ void spi_lld_stop(SPIDriver *spip) { */
void spi_lld_select(SPIDriver *spip) {
- palClearPad(spip->config->ssport, spip->config->sspad);
+ /* No implementation on STM32.*/
}
/**
@@ -500,8 +501,9 @@ void spi_lld_select(SPIDriver *spip) { */
void spi_lld_unselect(SPIDriver *spip) {
- palSetPad(spip->config->ssport, spip->config->sspad);
+ /* No implementation on STM32.*/
}
+#endif
/**
* @brief Ignores data on the SPI bus.
|