mbed library sources for airmote
Fork of mbed-src by
Diff: targets/hal/TARGET_NORDIC/TARGET_NRF51822/spi_api.c
- Revision:
- 209:137057ef9d1e
- Parent:
- 104:a6a92e2e5a92
- Child:
- 227:7bd0639b8911
diff -r 4557f4bb2dd5 -r 137057ef9d1e targets/hal/TARGET_NORDIC/TARGET_NRF51822/spi_api.c --- a/targets/hal/TARGET_NORDIC/TARGET_NRF51822/spi_api.c Fri May 23 10:30:07 2014 +0100 +++ b/targets/hal/TARGET_NORDIC/TARGET_NRF51822/spi_api.c Fri May 23 11:30:06 2014 +0100 @@ -170,7 +170,7 @@ } void spi_format(spi_t *obj, int bits, int mode, int slave) { - uint32_t config_mode; + uint32_t config_mode = 0; spi_disable(obj,slave); if (bits != 8) {