From: Keith Packard Date: Mon, 25 Apr 2016 22:49:45 +0000 (-0400) Subject: altos/telebt-v3.0: Flip CTS/RTS pins for BT module X-Git-Tag: 1.6.3~2^2~20 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c816bea3536d025568dab313d7c8944a56ba0801;hp=27319e4edbc503f193475b437fa5fe2937d47cbe 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 --- 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();