From aaab8a34c9606bdd1bd20b9347e193c9c904f38f Mon Sep 17 00:00:00 2001 From: Anton Veretenenko Date: Tue, 6 Oct 2015 08:35:05 +0500 Subject: [PATCH] MSP430 USI SPI Library: MOSI, MISO and SCK pins should be released from SPI hardware when SPI.end() called. --- hardware/msp430/libraries/SPI/utility/usi_spi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware/msp430/libraries/SPI/utility/usi_spi.cpp b/hardware/msp430/libraries/SPI/utility/usi_spi.cpp index a03fd6ae03f..845f8c964ea 100644 --- a/hardware/msp430/libraries/SPI/utility/usi_spi.cpp +++ b/hardware/msp430/libraries/SPI/utility/usi_spi.cpp @@ -62,6 +62,7 @@ void spi_initialize(void) void spi_disable(void) { USICTL0 |= USISWRST; // put USI in reset mode + USICTL0 &= ~(USIPE5 | USIPE6 | USIPE7); } /**