Skip to content

Conversation

flobz
Copy link

@flobz flobz commented Oct 28, 2024

This PR require a fix in atdf2svd: Rahix/atdf2svd#67.

Based on #139

Fix:
#114
#97

Rahix and others added 7 commits January 7, 2025 20:04
Uses avrxmega2 and atxmega32a4 because atmega4809 support isn't shipped
with avr-libc for some reason...
This is all a big jumbled mess and in no way "production ready".

Clock/delay seems to be wrong, at least the blinky blinks way too
slow...
Comment on lines +1 to +10
fn init(portmux: &crate::pac::PORTMUX, clkctrl: &crate::pac::CLKCTRL, cpu: &crate::pac::CPU) {
portmux.usartroutea.write(|w| w.usart1().alt1().usart3().alt1());
// PORTMUX setting for TCA -> all outputs [0:2] point to PORTB pins [0:2] timer
portmux.tcaroutea.write(|w|w.tca0().portb());

portmux.tcbroutea.write(|w|w.tcb0().set_bit().tcb1().set_bit());

cpu.ccp.write(|w|w.ccp().ioreg());
clkctrl.mclkctrlb.write(|w|w.pen().clear_bit());
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it's the right place for configuring register of the mcu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants