Skip to content
Snippets Groups Projects
Commit 6bb00464 authored by Gabriel Moreno's avatar Gabriel Moreno Committed by Nuno Marques
Browse files

urtps: fix UART speed setting to work in Linux


The previous code used the numeric baudrate as the speed argument
for cfsetispeed() and cfsetospeed(). This works in OSX and NuttX,
but is not portable.

This fix introduces a new method to convert baudrate to speed using
constants such as B115200.

Signed-off-by: default avatarGabriel Moreno <gabrielm@cs.cmu.edu>
parent d4570e10
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment