File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ void init()
291291 /* TYPE A TIMER */
292292
293293 /* PORTMUX setting for TCA -> all outputs [0:2] point to PORTB pins [0:2] */
294- PORTMUX .TCA = PORTMUX_TCA0_PORTB_gc ;
294+ PORTMUX .TCAROUTEA = PORTMUX_TCA0_PORTB_gc ;
295295
296296 /* Setup timers for single slope PWM, but do not enable, will do in analogWrite() */
297297 TCA0 .SINGLE .CTRLB |= (TCA_SINGLE_WGMODE_SINGLESLOPE_gc );
@@ -311,7 +311,7 @@ void init()
311311 /* TYPE B TIMERS */
312312
313313 /* PORTMUX alternate location needed for TCB0 & 1, TCB2 is default location */
314- PORTMUX .TCB |= (PORTMUX_TCB0_bm | PORTMUX_TCB1_bm );
314+ PORTMUX .TCBROUTEA |= (PORTMUX_TCB0_bm | PORTMUX_TCB1_bm );
315315
316316 /* Start with TCB0 */
317317 TCB_t * timer_B = (TCB_t * )& TCB0 ;
@@ -393,7 +393,7 @@ void init()
393393/****************************** USART *****************************************/
394394
395395 /* Configure PORTMUX for USARTS */
396- PORTMUX .USARTA = (PORTMUX_USART1_ALT1_gc // MAIN
396+ PORTMUX .USARTROUTEA = (PORTMUX_USART1_ALT1_gc // MAIN
397397 | PORTMUX_USART0_ALT1_gc // SPARE
398398 | PORTMUX_USART3_ALT1_gc ); // DEBUG
399399
You can’t perform that action at this time.
0 commit comments