Support for Teensy 4 (#19311)

This commit is contained in:
bilsef
2020-09-09 16:57:20 -07:00
committed by GitHub
parent bc7720c0cd
commit 049fbc92a9
31 changed files with 1814 additions and 7 deletions

View File

@ -43,7 +43,7 @@ class SPIclass<MISO_PIN, MOSI_PIN, SCK_PIN> {
SET_INPUT_PULLUP(MISO_PIN);
}
FORCE_INLINE static uint8_t receive() {
#if defined(__AVR__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#if defined(__AVR__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__) || defined(__IMXRT1062__)
SPDR = 0;
for (;!TEST(SPSR, SPIF););
return SPDR;