Kaynağa Gözat

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

teensy4-core
PaulStoffregen 9 yıl önce
ebeveyn
işleme
ca6b6fd9b0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      teensy3/pins_teensy.c

+ 1
- 1
teensy3/pins_teensy.c Dosyayı Görüntüle

#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);
} }

Yükleniyor…
İptal
Kaydet