-
Notifications
You must be signed in to change notification settings - Fork 2.1k
cpu/atmega2560: reworked UART driver #5026
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
Conversation
#define MEGA_UART1_BASE (uint16_t *)(&UCSR1A) | ||
#define MEGA_UART2_BASE (uint16_t *)(&UCSR2A) | ||
#define MEGA_UART3_BASE (uint16_t *)(&UCSR2A) | ||
/** @} */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No extra parentheses required here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no really, but they won't hurt either -> will fix
can you rebase since #5014 was merged? :) |
yepp |
107f304
to
71e8cec
Compare
rebased |
71e8cec
to
7741acc
Compare
also added the missing parens |
great thanks |
is this normal?:
|
I'm trying to use tests/periph_uart and it freezes. After a reboot it prints trash, lots of trash :S |
actually it is possible to initialise one UART but at the second one it freezes |
still looking into this, but won't probably make it for the release, so putting this on the list for the next one... |
seems reasonable :) |
cpu/atmega2560: reworked UART (from #5026)
#5537 was merged |
gets rid of unneccesary configuration stuff in the boards periph_conf, makes the UART configuration much easier and saves ~650 byte flash for the default example