diff options
author | Keith Packard <keithp@keithp.com> | 2015-02-01 16:43:06 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-02-01 16:43:06 +0100 |
commit | 845ae016d700c37948e053ead5f7e2778356fda3 (patch) | |
tree | cc239ec4fc0fa577c448c5d7e20085e4b16326d3 | |
parent | a138e05ae6241a6743ca9f64528124f5f6c8e0ee (diff) |
altos/telebt-v3.0: Fix stdio setup for BTM
Make sure the BTM module is allowed to be included in stdio, but delay
adding that until the BT link is running.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/telebt-v3.0/ao_pins.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/telebt-v3.0/ao_pins.h b/src/telebt-v3.0/ao_pins.h index 0d03f94d..f178c349 100644 --- a/src/telebt-v3.0/ao_pins.h +++ b/src/telebt-v3.0/ao_pins.h @@ -49,12 +49,13 @@ #define SERIAL_1_PA9_PA10 1 #define HAS_SERIAL_2 1 -#define USE_SERIAL_2_STDIN 0 +#define USE_SERIAL_2_STDIN 1 +#define DELAY_SERIAL_2_STDIN 1 #define USE_SERIAL_2_FLOW 1 #define SERIAL_2_PA2_PA3 1 #define SERIAL_2_PD5_PD6 0 -#define HAS_SERIAL_3 1 +#define HAS_SERIAL_3 0 #define USE_SERIAL_3_STDIN 0 #define SERIAL_3_PB10_PB11 1 #define SERIAL_3_PC10_PC11 0 @@ -170,7 +171,7 @@ struct ao_adc { #define _ao_serial_btm_sleep _ao_serial2_sleep #define ao_serial_btm_set_speed ao_serial2_set_speed #define ao_serial_btm_drain ao_serial2_drain -#define ao_serial_btm_rx_fifo ao_serial2_rx_fifo +#define ao_serial_btm_rx_fifo (ao_stm_usart2.rx_fifo) #define AO_BTM_INT_PORT (&stm_gpioa) #define AO_BTM_INT_PIN 15 |