-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATmega32U4 support: collect register definitions from multiple modules #48
Comments
gergoerdi
changed the title
ATMega32U4 support: collect register definitions from multiple modules
ATmega32U4 support: collect register definitions from multiple modules
Dec 22, 2022
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
The next problem is the 16-bit timer module
The problem here is that
This is probably related to the fact that the 16-bit timer's register group is called |
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
gergoerdi
added a commit
to gergoerdi/ruduino
that referenced
this issue
Dec 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to use Rust to develop for the ArduBoy, which uses an ATmega32U4, which I believe is the same mcu as used on the Arduino Leonardo. So there should be quite a lot of boards out there using it.
Ruduino's
core_generator
chokes on the 16u4 and the 32u4 as-is because they havePDI
andPDO
pins in their SPI definition. I think these can be safely ignored as they are only used for in-circuit programming.However, if we get over this hump, we get a more severe problem: registers that are defined "piecewise" at multiple locations in the packfile. For example, on the 32u4
ADCSRB
is defined in two modules, inAC
and inADC
. Withcore_generator
's naive handling of registers, these end up as duplicate definitions inatmega32u4.rs
:The text was updated successfully, but these errors were encountered: