Kaynağa Gözat

fix for delay of 1 micro sec @ 2MHz will be 0

main
duff2013 11 yıl önce
ebeveyn
işleme
4d3cf8fff7
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      teensy3/core_pins.h

+ 2
- 1
teensy3/core_pins.h Dosyayı Görüntüle

#elif F_CPU == 2000000 #elif F_CPU == 2000000
uint32_t n = usec >> 1; uint32_t n = usec >> 1;
#endif #endif
if (usec == 0) return;
// changed because a delay of 1 micro Sec @ 2MHz will be 0
if (n == 0) return;
__asm__ volatile( __asm__ volatile(
"L_%=_delayMicroseconds:" "\n\t" "L_%=_delayMicroseconds:" "\n\t"
#if F_CPU < 24000000 #if F_CPU < 24000000

Yükleniyor…
İptal
Kaydet