Browse Source

fix delayMicroseconds() for 144MHz

teensy4-core
Frank Bösing 10 years ago
parent
commit
3717f41ac1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/core_pins.h

+ 1
- 1
teensy3/core_pins.h View File

static inline void delayMicroseconds(uint32_t usec) static inline void delayMicroseconds(uint32_t usec)
{ {
#if F_CPU == 144000000 #if F_CPU == 144000000
uint32_t n = usec << 6;
uint32_t n = usec * 48;
#elif F_CPU == 96000000 #elif F_CPU == 96000000
uint32_t n = usec << 5; uint32_t n = usec << 5;
#elif F_CPU == 48000000 #elif F_CPU == 48000000

Loading…
Cancel
Save