Browse Source

opps, fix delayMicroseconds on Teensy-LC at 24 MHz for realz

teensy4-core
PaulStoffregen 9 years ago
parent
commit
ca6b6fd9b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/pins_teensy.c

+ 1
- 1
teensy3/pins_teensy.c View File

@@ -888,7 +888,7 @@ uint32_t micros(void)
#if defined(KINETISL) && F_CPU == 48000000
return count * 1000 + ((current * (uint32_t)87381) >> 22);
#elif defined(KINETISL) && F_CPU == 24000000
return count * 1000 + ((current * (uint32_t)174763) >> 21);
return count * 1000 + ((current * (uint32_t)174763) >> 22);
#endif
return count * 1000 + current / (F_CPU / 1000000);
}

Loading…
Cancel
Save