Skip to content
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

use avr-libc TWI symbols #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

use avr-libc TWI symbols #10

wants to merge 3 commits into from

Conversation

tlyu
Copy link
Contributor

@tlyu tlyu commented Jul 23, 2022

Use the TWI hardware module status symbols from <util/twi.h> from avr-libc instead of defining our own. Also clean up various unused things, and tidy up includes.

Confirmed to compile to identical machine code.

tlyu added 3 commits July 22, 2022 19:18
Use util/twi.h macros for AVR TWI module statuses instead of
defining our own. Also clean up inclusions a bit.

Signed-off-by: Taylor Yu <[email protected]>
Signed-off-by: Taylor Yu <[email protected]>
Use a Unix-style local numeric label for the busy loop. This
prevents disassembly from trying to annotate jump targets, etc.
relative to `HERE`.

Signed-off-by: Taylor Yu <[email protected]>
@obra
Copy link
Member

obra commented Jul 23, 2022

Thanks!

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