Skip to content

Commit f0d3bda

Browse files
authored
Merge pull request #4 from espreng/wire-lib-dev
Wire library development
2 parents e8ac9c0 + c27109d commit f0d3bda

File tree

5 files changed

+1050
-746
lines changed

5 files changed

+1050
-746
lines changed

Diff for: cores/arduino/wiring.c

+10-10
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

@@ -392,10 +392,10 @@ void init()
392392

393393
/****************************** USART *****************************************/
394394

395-
/* Configure PORTMUX for USARTS */
396-
PORTMUX.USARTROUTEA = (PORTMUX_USART1_ALT1_gc // MAIN
397-
| PORTMUX_USART0_ALT1_gc // SPARE
398-
| PORTMUX_USART3_ALT1_gc); // DEBUG
395+
// /* Configure PORTMUX for USARTS */
396+
// PORTMUX.USARTROUTEA = (PORTMUX_USART1_ALT1_gc // MAIN
397+
// | PORTMUX_USART0_ALT1_gc // SPARE
398+
// | PORTMUX_USART3_ALT1_gc); // DEBUG
399399

400400
/********************* TCB3 for system time tracking **************************/
401401

0 commit comments

Comments
 (0)