diff options
author | Keith Packard <keithp@keithp.com> | 2012-01-03 22:27:59 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-03 22:27:59 -0800 |
commit | f450f8bc70f857053b26c4379f54a318062e89a1 (patch) | |
tree | 80fdf93d96f4561b468ed24543556e98146c28fa | |
parent | c6821ae734a7efaf2e069f6c5edf9605a9dbe125 (diff) |
altos: Set correct registers for serial0 baud
oops. not going to work very well setting serial 1.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/cc1111/ao_serial0.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cc1111/ao_serial0.c b/src/cc1111/ao_serial0.c index 140721b1..e8c1eb35 100644 --- a/src/cc1111/ao_serial0.c +++ b/src/cc1111/ao_serial0.c @@ -94,9 +94,9 @@ ao_serial0_set_speed(uint8_t speed) ao_serial0_drain(); if (speed > AO_SERIAL_SPEED_57600) return; - U1UCR |= UxUCR_FLUSH; - U1BAUD = ao_serial_speeds[speed].baud; - U1GCR = ao_serial_speeds[speed].gcr; + U0UCR |= UxUCR_FLUSH; + U0BAUD = ao_serial_speeds[speed].baud; + U0GCR = ao_serial_speeds[speed].gcr; } void |