瀏覽代碼

Fix Macro clockCyclesPerMicrosecond

F_CPU -> F_CPU_ACTUAL
teensy4-core
Frank 4 年之前
父節點
當前提交
18e40cb8d3
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy4/wiring.h

+ 1
- 1
teensy4/wiring.h 查看文件

@@ -157,7 +157,7 @@ extern long double pow10l(long double x);
#define interrupts() __enable_irq()
#define noInterrupts() __disable_irq()

#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
#define clockCyclesPerMicrosecond() ( F_CPU_ACTUAL / 1000000L )
#define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() )
#define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() )


Loading…
取消
儲存