Browse Source

Fix for fastest optimization with CPU > 120 MHz

main
PaulStoffregen 7 years ago
parent
commit
13fc9401d9
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      WireKinetis.cpp

+ 5
- 0
WireKinetis.cpp View File

@@ -704,6 +704,11 @@ uint8_t TwoWire::requestFrom(uint8_t address, uint8_t length, uint8_t sendStop)
} else {
tmp = port().D;
}
#if F_CPU > 120000000
__asm__("nop");
__asm__("nop");
__asm__("nop");
#endif
if (sendStop) port().C1 = I2C_C1_IICEN;
rxBufferLength = count;
return count;

Loading…
Cancel
Save