diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-13 11:45:07 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-13 11:45:07 +0000 |
commit | 4fab7c06d1b0c9e61f6106b5b2a5c2c0b5694c34 (patch) | |
tree | e7fdadc85d78aa2143d0082d26351da49f7f2d53 /os/hal/src/spi.c | |
parent | ec7455babe131ee0b8a4c228ed00a02396619a7d (diff) | |
download | ChibiOS-4fab7c06d1b0c9e61f6106b5b2a5c2c0b5694c34.tar.gz ChibiOS-4fab7c06d1b0c9e61f6106b5b2a5c2c0b5694c34.tar.bz2 ChibiOS-4fab7c06d1b0c9e61f6106b5b2a5c2c0b5694c34.zip |
ADC, SPI, PWM driver enhancements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2254 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/spi.c')
-rw-r--r-- | os/hal/src/spi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/src/spi.c b/os/hal/src/spi.c index fe7b729bd..be5cf9452 100644 --- a/os/hal/src/spi.c +++ b/os/hal/src/spi.c @@ -105,6 +105,8 @@ void spiStart(SPIDriver *spip, const SPIConfig *config) { /**
* @brief Deactivates the SPI peripheral.
+ * @note Deactivating the peripheral also enforces a release of the slave
+ * select line.
*
* @param[in] spip pointer to the @p SPIDriver object
*
@@ -117,6 +119,7 @@ void spiStop(SPIDriver *spip) { chSysLock();
chDbgAssert((spip->spd_state == SPI_STOP) || (spip->spd_state == SPI_READY),
"spiStop(), #1", "invalid state");
+ spi_lld_unselect(spip);
spi_lld_stop(spip);
spip->spd_state = SPI_STOP;
chSysUnlock();
|