altos: Clean up serial initialization
authorKeith Packard <keithp@keithp.com>
Fri, 1 Apr 2011 23:48:12 +0000 (16:48 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 1 Apr 2011 23:48:12 +0000 (16:48 -0700)
commit4e2c18249e16c98cf5f7dccdf8d3b84bc473863a
tree4df076794e9e30f6163920a6acc915d9cd59abd4
parent92386f2e8419c4df125692cc998eb72ec49bf991
altos: Clean up serial initialization

Flush serial input buffers when switching speeds.
Ensure pin configuration is correct.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_serial.c