瀏覽代碼

Merge pull request #452 from FrankBoesing/patch-4

Fix Macro clockCyclesPerMicrosecond
main
Paul Stoffregen 4 年之前
父節點
當前提交
eda37ec204
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…
取消
儲存