summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-30 17:40:26 -0700
committerKeith Packard <keithp@keithp.com>2017-04-30 17:40:26 -0700
commit99c5c47d9288721a1fe009698393c67dd36a16fb (patch)
tree5d67c1c96662c741ed0ea64f1b53ebf31e77b582 /src
parent7ace97885c4924de049ff20a40fd9ec234b6577b (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/telegps-v2.0/ao_pins.h12
1 files changed, 8 insertions, 4 deletions
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