瀏覽代碼

Merge pull request #452 from FrankBoesing/patch-4

Fix Macro clockCyclesPerMicrosecond
teensy4-core
Paul Stoffregen 4 年之前
父節點
當前提交
eda37ec204
沒有連結到貢獻者的電子郵件帳戶。
共有 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…
取消
儲存