-
Notifications
You must be signed in to change notification settings - Fork 615
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
Features/fix uart flow control #685
base: master
Are you sure you want to change the base?
Features/fix uart flow control #685
Conversation
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.
Please fix all the strings that are too long
src/x86/up.c
Outdated
@@ -155,7 +156,7 @@ mraa_up_board() | |||
mraa_up_set_pininfo(b, 8, "UART1_TX", (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }, 14); | |||
mraa_up_set_pininfo(b, 9, "GND", (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 }, -1); | |||
mraa_up_set_pininfo(b, 10, "UART1_RX", (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }, 15); | |||
mraa_up_set_pininfo(b, 11, "GPIO17", (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }, 17); | |||
mraa_up_set_pininfo(b, 11, "UART1_RTS",(mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }, 17); |
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.
That string is too long for the array, actually a bunch of those are to long already, max size is 7 (as 7+1 == 8 in C with the \0 char).
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.
Hi the maximum name size is 12 character
include/mraa_internal_types.h: char name[MRAA_PIN_NAME_SIZE]; /**< Pin's real world name */
api/mraa/common.h:#define MRAA_PIN_NAME_SIZE 12
Removed up related changes and put in a separate pull request |
Signed-off-by: Nicola Lunghi <[email protected]>
Added support for uart hardware flow control