🩹 Add MarlinSPI to more HALs

This commit is contained in:
Scott Lahteine
2021-09-23 00:51:35 -05:00
parent 64c6475434
commit 1835f8fb25
9 changed files with 210 additions and 1 deletions

View File

@@ -74,7 +74,8 @@ void spiBegin() {
#elif defined(PRR0)
PRR0
#endif
, PRSPI);
, PRSPI
);
SPCR = _BV(SPE) | _BV(MSTR) | (spiRate >> 1);
SPSR = spiRate & 1 || spiRate == 6 ? 0 : _BV(SPI2X);