Support for Teensy 4 (#19311)

This commit is contained in:
bilsef authored and GitHub committed 2020-09-09 18:57:20 -05:00
1 parent bc7720c0cd
commit 049fbc92a9
31 files changed
+1814 -7

No files matched your search

+1 -1
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;