summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_serial.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-01-03 20:41:15 -0800
committerKeith Packard <keithp@keithp.com>2012-01-03 20:41:15 -0800
commit7a42f2e0f145d2d520aed8e241fa39f7cb62b19f (patch)
treef4935b5c16a58849d8fb70d3831278efc57fd382 /src/cc1111/ao_serial.c
parent085625ff3992454b59583d95a3c415597c51f754 (diff)
altos: Add support for UART0 in async mode
And copy bytes from it to stdout. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_serial.c')
-rw-r--r--src/cc1111/ao_serial.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cc1111/ao_serial.c b/src/cc1111/ao_serial.c
index 82370c64..4d5b9abd 100644
--- a/src/cc1111/ao_serial.c
+++ b/src/cc1111/ao_serial.c
@@ -91,10 +91,7 @@ ao_serial_drain(void) __critical
ao_sleep(&ao_usart1_tx_fifo);
}
-static __code struct {
- uint8_t baud;
- uint8_t gcr;
-} ao_serial_speeds[] = {
+const __code struct ao_serial_speed ao_serial_speeds[] = {
/* [AO_SERIAL_SPEED_4800] = */ {
/* .baud = */ 163,
/* .gcr = */ (7 << UxGCR_BAUD_E_SHIFT) | UxGCR_ORDER_LSB