diff options
Diffstat (limited to 'src/fsm')
-rw-r--r-- | src/fsm/gps.h | 10 | ||||
-rw-r--r-- | src/fsm/usart.c | 6 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/fsm/gps.h b/src/fsm/gps.h index 82f8a77..b1f023a 100644 --- a/src/fsm/gps.h +++ b/src/fsm/gps.h @@ -27,15 +27,13 @@ #ifndef __GPS_H_ #define __GPS_H_ -/* Setup GPS receiver over I2C and parse time */ +/* Setup GPS receiver over USART and parse time */ -/* I2C connections: - * SCL on PB6 - * SDA on PB9 +/* USART connections: + * board TX to GPS RX on PD8 + * board RX to GPS TX on PD9 */ -#define GPS_I2C_ADDR 0x42 // I2C address of GPS receiver - struct gps_time_s { uint16_t year; // Year, range 1999..2099 (UTC) uint8_t month; // Month, range 1..12 (UTC) diff --git a/src/fsm/usart.c b/src/fsm/usart.c index 013c4db..d12b51f 100644 --- a/src/fsm/usart.c +++ b/src/fsm/usart.c @@ -31,7 +31,11 @@ #include "task.h" #include "queue.h" -// USART 3 on PD8 and PD9 +/* USART 3 on PD8 and PD9 + * + * board TX to GPS RX on PD8 + * board RX to GPS TX on PD9 + */ const uint16_t GPIOD_PIN_USART3_TX = GPIO_Pin_8; const uint16_t GPIOD_PIN_USART3_RX = GPIO_Pin_9; |