-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/atmega2560: reworked UART (from #5026) #5537
Conversation
@aabadie today it's gonna be the day? ;) |
@@ -1,5 +1,6 @@ | |||
/* | |||
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen | |||
* Copyright (C) 2014-2016 Freie Universität Berlin |
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.
@kYc0o is that copyright correct? (shouldn't INRIA?)
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.
Actually this code comes from Hauke, I didn't modify anything on this so I think is ok
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.
ok, perfect! :)
@kYc0o, code changes looks good to me but I don't have a mega2560 for testing. |
Ive got one but little time. would basic shell testing confirm that this is working? -----Original Message----- @adjih doesn't have one? Or @jia200x ? You are receiving this because you commented. |
Somehow yes, but of you can run the test 'periph_uart' and check for the second uart it would be ok |
@kYc0o, I just gave it a try. The UART0 works. But I tried to configure another UART and didn't succeed. I based my work by simply adding the bare minimum for UART communication in the hello example:
#include "periph/uart.h"
#include "xtimer.h" and, after the initial printf: uart_init(2, 115200, NULL, (void*)NULL);
for (;;) {
uart_write(2, (uint8_t*)"test\n", 5);
xtimer_sleep(1);
} but then the build fails with the error:
Is it me or is there something broken ? Do all UARTs be supported on this board ? |
Ok, actually it was me, sorry 😕 So for me it works like a charm. ACK |
@aabadie can you put the flag "ready for ci" to make murdock work? |
I saw some ACK so go! |
Takes #5026 and adds small fixes.