Skip to content

Commit c27109d

Browse files
Roy, ElizabethRoy, Elizabeth
Roy, Elizabeth
authored and
Roy, Elizabeth
committed
Not performing F_CPU correction with ES devices since they have no characterization data yet
1 parent 392e0c2 commit c27109d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: cores/arduino/wiring.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ void init()
277277
/* Disable system clock prescaler - F_CPU should now be ~16MHz */
278278
_PROTECTED_WRITE(CLKCTRL_MCLKCTRLB, 0x00);
279279

280-
/* Calculate actual F_CPU with error values from signature row */
281-
int8_t sigrow_val = SIGROW.OSC16ERR5V;
282-
int64_t cpu_freq = F_CPU;
283-
cpu_freq *= (1024 + sigrow_val);
284-
cpu_freq /= 1024;
285-
F_CPU_CORRECTED = (uint32_t)cpu_freq;
280+
// /* Calculate actual F_CPU with error values from signature row */
281+
// int8_t sigrow_val = SIGROW.OSC16ERR5V;
282+
// int64_t cpu_freq = F_CPU;
283+
// cpu_freq *= (1024 + sigrow_val);
284+
// cpu_freq /= 1024;
285+
// F_CPU_CORRECTED = (uint32_t)cpu_freq;
286286

287287
/***************************** TIMERS FOR PWM *********************************/
288288

0 commit comments

Comments
 (0)