Closed JRDavisUF closed 5 years ago
It looks like the definitions for SPI_MODE0 and 1 (and the definitions for SPI_MODE2 and 3) have been swapped when going from 5.23.1 to 5.25.0. My perusal of the TI documentation seems to indicate that the 5.23.1 versions were correct.
5.23.1\cores\msp432r\ti\runtime\wiring\SPI.h
5.25.0\cores\msp432r\ti\runtime\wiring\SPI.h
Fixed in 5.25.1 and is available through the board manager.
And PR #36.
It looks like the definitions for SPI_MODE0 and 1 (and the definitions for SPI_MODE2 and 3) have been swapped when going from 5.23.1 to 5.25.0. My perusal of the TI documentation seems to indicate that the 5.23.1 versions were correct.
5.23.1\cores\msp432r\ti\runtime\wiring\SPI.h
define SPI_MODE0 SPI_POL0_PHA0
define SPI_MODE1 SPI_POL0_PHA1
define SPI_MODE2 SPI_POL1_PHA0
define SPI_MODE3 SPI_POL1_PHA1
5.25.0\cores\msp432r\ti\runtime\wiring\SPI.h
define SPI_MODE0 SPI_POL0_PHA1
define SPI_MODE1 SPI_POL0_PHA0
define SPI_MODE2 SPI_POL1_PHA1
define SPI_MODE3 SPI_POL1_PHA0