Browse Source

fix delayMicroseconds()

thank you, duff !
main
Frank Bösing 10 years ago
parent
commit
a06ab66b7d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/core_pins.h

+ 1
- 1
teensy3/core_pins.h View File

@@ -771,7 +771,7 @@ static inline void delayMicroseconds(uint32_t) __attribute__((always_inline, unu
static inline void delayMicroseconds(uint32_t usec)
{
#if F_CPU == 120000000
uint32_t n = usec << 6; //Is this correct ?
uint32_t n = usec * 40;
#elif F_CPU == 96000000
uint32_t n = usec << 5;
#elif F_CPU == 48000000

Loading…
Cancel
Save