mbed library sources
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;