Procházet zdrojové kódy

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

main
PaulStoffregen před 10 roky
rodič
revize
ca6b6fd9b0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      teensy3/pins_teensy.c

+ 1
- 1
teensy3/pins_teensy.c Zobrazit soubor

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

Načítá se…
Zrušit
Uložit