Unverified Commit a55265f7 authored by TANAKA Masayuki's avatar TANAKA Masayuki Committed by GitHub

Fix clockCyclesPerMicrosecond Change from fixed value to current value (#3993)

parent c1a7198e
......@@ -78,7 +78,7 @@
#define interrupts() sei()
#define noInterrupts() cli()
#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
#define clockCyclesPerMicrosecond() ( (long int)getCpuFrequencyMhz() )
#define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() )
#define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment