aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-06 20:50:21 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-06 20:50:21 +0100
commita916944e270b07d83725ed0d045bcd46fa0fa91d (patch)
treeaee2dcaf0f9de34f0413ceb2ac2254af2bb940b5
parent309c11129e66476f68924bbe7c3555374ab6c3e9 (diff)
downloadglutte-o-matic-a916944e270b07d83725ed0d045bcd46fa0fa91d.tar.gz
glutte-o-matic-a916944e270b07d83725ed0d045bcd46fa0fa91d.tar.bz2
glutte-o-matic-a916944e270b07d83725ed0d045bcd46fa0fa91d.zip
Update comments on GPS connection
-rw-r--r--src/fsm/gps.h10
-rw-r--r--src/fsm/usart.c6
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;