瀏覽代碼

fix delayMicroseconds() for 144MHz

main
Frank Bösing 10 年之前
父節點
當前提交
3717f41ac1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/core_pins.h

+ 1
- 1
teensy3/core_pins.h 查看文件

@@ -771,7 +771,7 @@ static inline void delayMicroseconds(uint32_t) __attribute__((always_inline, unu
static inline void delayMicroseconds(uint32_t usec)
{
#if F_CPU == 144000000
uint32_t n = usec << 6;
uint32_t n = usec * 48;
#elif F_CPU == 96000000
uint32_t n = usec << 5;
#elif F_CPU == 48000000

Loading…
取消
儲存