arduino / ArduinoCore-samd

Arduino Core for SAMD21 CPU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SPI / SERCOM: SPI speed is not set

fvzeppelin opened this issue · comments

SPIClassSAMD::beginTransaction calls
SPIClassSAMD::config which calls
SERCOM::initSPIClock to set the SPI baudrate.
But this will not work, because the baud register is enable protected and the channel is already enabled. A working example is
SERCOM::setBaudrateSPI
which can be used in app space after SPI initialization as a workaround.

Issued brought to the correct repo:
adafruit#336