Open rei-vilo opened 6 years ago
The most important part of this ticket is to allow faster speeds. Today, maximum speed tops at 16 MHz. More powerful MCUs and compatible SPI devices run at faster SPI speeds.
MSP430 already has SPI.beginTransaction()
and SPISettings
implemented.
Current Energia SPI library still relies on the old SPI library implementation, with
setClockDivider()
.For example, for SPI
setClockDivider()
, Arduino warns to useSPISettings
withSPI.beginTransaction()
instead.As an additional benefit,
SPISettings
allows to specify the speed directly in Hz and no longer as a divider.This greatly enhances portability across different MCUs, and ensures a better compatibility with Arduino framework.