From: Keith Packard Date: Mon, 1 May 2017 00:40:26 +0000 (-0700) Subject: altos/telegps-v2.0: GPS chip is connected to serial 2, not serial 1 X-Git-Tag: 1.8~148 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=99c5c47d9288721a1fe009698393c67dd36a16fb altos/telegps-v2.0: GPS chip is connected to serial 2, not serial 1 Turn on serial 2 and use it for GPS. Signed-off-by: Keith Packard --- diff --git a/src/telegps-v2.0/ao_pins.h b/src/telegps-v2.0/ao_pins.h index 059fc9fa..74f4ff27 100644 --- a/src/telegps-v2.0/ao_pins.h +++ b/src/telegps-v2.0/ao_pins.h @@ -102,14 +102,18 @@ struct ao_adc { #define AO_M25_SPI_CS_MASK (1 << 0) #define AO_M25_SPI_BUS AO_SPI_1_PA5_PA6_PA7 +/* Serial */ #define HAS_SERIAL_1 1 #define SERIAL_1_PB6_PB7 1 #define USE_SERIAL_1_STDIN 0 -#define ao_gps_getchar ao_serial1_getchar -#define ao_gps_putchar ao_serial1_putchar -#define ao_gps_set_speed ao_serial1_set_speed -#define ao_gps_fifo (ao_usart_rx_fifo) +#define HAS_SERIAL_2 1 +#define SERIAL_2_PA2_PA3 1 +#define USE_SERIAL_2_STDIN 0 + +#define ao_gps_getchar ao_serial2_getchar +#define ao_gps_putchar ao_serial2_putchar +#define ao_gps_set_speed ao_serial2_set_speed #define HAS_EEPROM 1 #define USE_INTERNAL_FLASH 0