uart: use an unsigned int for baud rate rather than speed_t
authorJon Trulson <jtrulson@ics.com>
Thu, 30 Apr 2015 20:12:45 +0000 (14:12 -0600)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Thu, 28 May 2015 22:31:11 +0000 (23:31 +0100)
commit88f3052d99f3a599adeff4430f752fde4320ff64
tree08835bd7973e09c1021f7c70c50d20306fd01aad
parentc30457e434152396156288e057f190c8c6d1643a
uart: use an unsigned int for baud rate rather than speed_t

uart.c contains a static conversion function that will translate known
baud rates into their speed_t counter parts.  If an unsupported baud
rate is selected, a diagnostic will be emitted via syslog and a
default of B9600 will be chosen.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/mraa/uart.h
api/mraa/uart.hpp
src/uart/uart.c