Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Revision 198:322bca33c29c, committed 2014-05-19
- Comitter:
- mbed_official
- Date:
- Mon May 19 15:45:07 2014 +0100
- Parent:
- 197:36a724675865
- Child:
- 199:aeeefa19f7de
- Commit message:
- Synchronized with git revision 7525cfcb4b789e825157459d2b8cd51696e77cfe
Full URL: https://github.com/mbedmicro/mbed/commit/7525cfcb4b789e825157459d2b8cd51696e77cfe/
[NUCLEO_F302R8] enhance SPI slave
Changed in this revision
| targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/spi_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/spi_api.c Mon May 19 11:00:07 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/spi_api.c Mon May 19 15:45:07 2014 +0100
@@ -131,7 +131,7 @@
} else { // Slave
pinmap_pinout(ssel, PinMap_SPI_SSEL);
obj->mode = SPI_Mode_Slave;
- obj->nss = SPI_NSS_Soft;
+ obj->nss = SPI_NSS_Hard;
}
init_spi(obj);
@@ -171,7 +171,7 @@
if (slave == 0) {
obj->mode = SPI_Mode_Master;
- obj->nss = SPI_NSS_Soft;
+ obj->nss = SPI_NSS_Hard;
} else {
obj->mode = SPI_Mode_Slave;
obj->nss = SPI_NSS_Hard;
