@@ -2305,10 +2305,6 @@ inline void Adafruit_SPITFT::SPI_MOSI_HIGH(void) {
2305
2305
#endif // end !HAS_PORT_SET_CLR
2306
2306
#else // !USE_FAST_PINIO
2307
2307
digitalWrite (swspi._mosi , HIGH);
2308
- #if defined(ESP32)
2309
- for (volatile uint8_t i = 0 ; i < 1 ; i++)
2310
- ;
2311
- #endif // end ESP32
2312
2308
#endif // end !USE_FAST_PINIO
2313
2309
}
2314
2310
@@ -2328,10 +2324,6 @@ inline void Adafruit_SPITFT::SPI_MOSI_LOW(void) {
2328
2324
#endif // end !HAS_PORT_SET_CLR
2329
2325
#else // !USE_FAST_PINIO
2330
2326
digitalWrite (swspi._mosi , LOW);
2331
- #if defined(ESP32)
2332
- for (volatile uint8_t i = 0 ; i < 1 ; i++)
2333
- ;
2334
- #endif // end ESP32
2335
2327
#endif // end !USE_FAST_PINIO
2336
2328
}
2337
2329
@@ -2343,22 +2335,14 @@ inline void Adafruit_SPITFT::SPI_SCK_HIGH(void) {
2343
2335
#if defined(HAS_PORT_SET_CLR)
2344
2336
#if defined(KINETISK)
2345
2337
*swspi.sckPortSet = 1 ;
2346
- #else // !KINETISK
2338
+ #else // !KINETISK
2347
2339
*swspi.sckPortSet = swspi.sckPinMask ;
2348
- #if defined(__IMXRT1052__) || defined(__IMXRT1062__) // Teensy 4.x
2349
- for (volatile uint8_t i = 0 ; i < 1 ; i++)
2350
- ;
2351
- #endif
2352
2340
#endif
2353
2341
#else // !HAS_PORT_SET_CLR
2354
2342
*swspi.sckPort |= swspi.sckPinMaskSet ;
2355
2343
#endif // end !HAS_PORT_SET_CLR
2356
2344
#else // !USE_FAST_PINIO
2357
2345
digitalWrite (swspi._sck , HIGH);
2358
- #if defined(ESP32)
2359
- for (volatile uint8_t i = 0 ; i < 1 ; i++)
2360
- ;
2361
- #endif // end ESP32
2362
2346
#endif // end !USE_FAST_PINIO
2363
2347
}
2364
2348
@@ -2370,22 +2354,14 @@ inline void Adafruit_SPITFT::SPI_SCK_LOW(void) {
2370
2354
#if defined(HAS_PORT_SET_CLR)
2371
2355
#if defined(KINETISK)
2372
2356
*swspi.sckPortClr = 1 ;
2373
- #else // !KINETISK
2357
+ #else // !KINETISK
2374
2358
*swspi.sckPortClr = swspi.sckPinMask ;
2375
- #if defined(__IMXRT1052__) || defined(__IMXRT1062__) // Teensy 4.x
2376
- for (volatile uint8_t i = 0 ; i < 1 ; i++)
2377
- ;
2378
- #endif
2379
2359
#endif
2380
2360
#else // !HAS_PORT_SET_CLR
2381
2361
*swspi.sckPort &= swspi.sckPinMaskClr ;
2382
2362
#endif // end !HAS_PORT_SET_CLR
2383
2363
#else // !USE_FAST_PINIO
2384
2364
digitalWrite (swspi._sck , LOW);
2385
- #if defined(ESP32)
2386
- for (volatile uint8_t i = 0 ; i < 1 ; i++)
2387
- ;
2388
- #endif // end ESP32
2389
2365
#endif // end !USE_FAST_PINIO
2390
2366
}
2391
2367
0 commit comments