瀏覽代碼

remove loops

caternuson 2 年之前
父節點
當前提交
8eca715530
共有 1 個文件被更改,包括 0 次插入24 次删除
  1. 0 24
      Adafruit_SPITFT.cpp

+ 0 - 24
Adafruit_SPITFT.cpp

@@ -2305,10 +2305,6 @@ inline void Adafruit_SPITFT::SPI_MOSI_HIGH(void) {
 #endif // end !HAS_PORT_SET_CLR
 #endif // end !HAS_PORT_SET_CLR
 #else  // !USE_FAST_PINIO
 #else  // !USE_FAST_PINIO
   digitalWrite(swspi._mosi, HIGH);
   digitalWrite(swspi._mosi, HIGH);
-#if defined(ESP32)
-  for (uint8_t i = 0; i < 1; i++)
-    ;
-#endif // end ESP32
 #endif // end !USE_FAST_PINIO
 #endif // end !USE_FAST_PINIO
 }
 }
 
 
@@ -2328,10 +2324,6 @@ inline void Adafruit_SPITFT::SPI_MOSI_LOW(void) {
 #endif // end !HAS_PORT_SET_CLR
 #endif // end !HAS_PORT_SET_CLR
 #else  // !USE_FAST_PINIO
 #else  // !USE_FAST_PINIO
   digitalWrite(swspi._mosi, LOW);
   digitalWrite(swspi._mosi, LOW);
-#if defined(ESP32)
-  for (uint8_t i = 0; i < 1; i++)
-    ;
-#endif // end ESP32
 #endif // end !USE_FAST_PINIO
 #endif // end !USE_FAST_PINIO
 }
 }
 
 
@@ -2345,20 +2337,12 @@ inline void Adafruit_SPITFT::SPI_SCK_HIGH(void) {
   *swspi.sckPortSet = 1;
   *swspi.sckPortSet = 1;
 #else                                                // !KINETISK
 #else                                                // !KINETISK
   *swspi.sckPortSet = swspi.sckPinMask;
   *swspi.sckPortSet = swspi.sckPinMask;
-#if defined(__IMXRT1052__) || defined(__IMXRT1062__) // Teensy 4.x
-  for (uint8_t i = 0; i < 1; i++)
-    ;
-#endif
 #endif
 #endif
 #else  // !HAS_PORT_SET_CLR
 #else  // !HAS_PORT_SET_CLR
   *swspi.sckPort |= swspi.sckPinMaskSet;
   *swspi.sckPort |= swspi.sckPinMaskSet;
 #endif // end !HAS_PORT_SET_CLR
 #endif // end !HAS_PORT_SET_CLR
 #else  // !USE_FAST_PINIO
 #else  // !USE_FAST_PINIO
   digitalWrite(swspi._sck, HIGH);
   digitalWrite(swspi._sck, HIGH);
-#if defined(ESP32)
-  for (uint8_t i = 0; i < 1; i++)
-    ;
-#endif // end ESP32
 #endif // end !USE_FAST_PINIO
 #endif // end !USE_FAST_PINIO
 }
 }
 
 
@@ -2372,20 +2356,12 @@ inline void Adafruit_SPITFT::SPI_SCK_LOW(void) {
   *swspi.sckPortClr = 1;
   *swspi.sckPortClr = 1;
 #else                                                // !KINETISK
 #else                                                // !KINETISK
   *swspi.sckPortClr = swspi.sckPinMask;
   *swspi.sckPortClr = swspi.sckPinMask;
-#if defined(__IMXRT1052__) || defined(__IMXRT1062__) // Teensy 4.x
-  for (uint8_t i = 0; i < 1; i++)
-    ;
-#endif
 #endif
 #endif
 #else  // !HAS_PORT_SET_CLR
 #else  // !HAS_PORT_SET_CLR
   *swspi.sckPort &= swspi.sckPinMaskClr;
   *swspi.sckPort &= swspi.sckPinMaskClr;
 #endif // end !HAS_PORT_SET_CLR
 #endif // end !HAS_PORT_SET_CLR
 #else  // !USE_FAST_PINIO
 #else  // !USE_FAST_PINIO
   digitalWrite(swspi._sck, LOW);
   digitalWrite(swspi._sck, LOW);
-#if defined(ESP32)
-  for (uint8_t i = 0; i < 1; i++)
-    ;
-#endif // end ESP32
 #endif // end !USE_FAST_PINIO
 #endif // end !USE_FAST_PINIO
 }
 }