summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-04-25 18:49:45 -0400
committerKeith Packard <keithp@keithp.com>2016-04-25 18:49:45 -0400
commitc816bea3536d025568dab313d7c8944a56ba0801 (patch)
tree961b3c7936a61dfb8f8037e5df131f8c73a3e4f4
parent27319e4edbc503f193475b437fa5fe2937d47cbe (diff)
altos/telebt-v3.0: Flip CTS/RTS pins for BT module
These are wired backwards, so ask that the right pins be used, which requires switching to software control of the pins. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/telebt-v3.0/ao_pins.h5
-rw-r--r--src/telebt-v3.0/ao_telebt.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/telebt-v3.0/ao_pins.h b/src/telebt-v3.0/ao_pins.h
index a6a01662..50584940 100644
--- a/src/telebt-v3.0/ao_pins.h
+++ b/src/telebt-v3.0/ao_pins.h
@@ -52,8 +52,13 @@
#define USE_SERIAL_2_STDIN 1
#define DELAY_SERIAL_2_STDIN 1
#define USE_SERIAL_2_FLOW 1
+#define USE_SERIAL_2_SW_FLOW 1
#define SERIAL_2_PA2_PA3 1
#define SERIAL_2_PD5_PD6 0
+#define SERIAL_2_PORT_RTS (&stm_gpioa)
+#define SERIAL_2_PIN_RTS 0
+#define SERIAL_2_PORT_CTS (&stm_gpioa)
+#define SERIAL_2_PIN_CTS 1
#define HAS_SERIAL_3 0
#define USE_SERIAL_3_STDIN 0
diff --git a/src/telebt-v3.0/ao_telebt.c b/src/telebt-v3.0/ao_telebt.c
index 44ee4f3d..1fe06b1a 100644
--- a/src/telebt-v3.0/ao_telebt.c
+++ b/src/telebt-v3.0/ao_telebt.c
@@ -31,7 +31,6 @@ main(void)
ao_clock_init();
ao_task_init();
- ao_serial_init();
ao_led_init(LEDS_AVAILABLE);
ao_led_on(AO_LED_RED);
ao_timer_init();