aboutsummaryrefslogtreecommitdiffstats
path: root/src/glutt-o-logique
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-20 22:28:41 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-20 22:28:41 +0200
commit583b44cac7915070bdbeffd94a7073ffb5dbee3f (patch)
tree53d7874ed7f4a01c0ab30025ac8494babfe748d1 /src/glutt-o-logique
parentc1aafe32fa2b6493b4c2658afc8c82866e25bfee (diff)
downloadglutte-o-matic-583b44cac7915070bdbeffd94a7073ffb5dbee3f.tar.gz
glutte-o-matic-583b44cac7915070bdbeffd94a7073ffb5dbee3f.tar.bz2
glutte-o-matic-583b44cac7915070bdbeffd94a7073ffb5dbee3f.zip
Replace LED_BLUE by GPS EPPS
Diffstat (limited to 'src/glutt-o-logique')
-rw-r--r--src/glutt-o-logique/pio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/glutt-o-logique/pio.c b/src/glutt-o-logique/pio.c
index e7c2a29..003b50b 100644
--- a/src/glutt-o-logique/pio.c
+++ b/src/glutt-o-logique/pio.c
@@ -38,12 +38,14 @@
#define GPIO_PIN_D GPIO_Pin_11
#define GPIO_PIN_REPLIE_n GPIO_Pin_13
#define GPIO_PIN_FAX GPIO_Pin_14
+#define GPIO_PIN_GPS_EPPS GPIO_Pin_15
#define GPIOC_OUTPUT_PINS ( \
GPIO_PIN_TX | \
GPIO_PIN_MOD_OFF | \
GPIO_PIN_QRP_out | \
+ GPIO_PIN_GPS_EPPS | \
0)
#undef GPIOC_OPENDRAIN_PINS
@@ -186,3 +188,14 @@ void pio_set_mod_off(int mod_off)
int pio_read_button() {
return GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_0) == Bit_SET;
}
+
+void pio_set_gps_epps(int on)
+{
+ if (on) {
+ GPIO_SetBits(GPIOC, GPIO_PIN_GPS_EPPS);
+ }
+ else {
+ GPIO_ResetBits(GPIOC, GPIO_PIN_GPS_EPPS);
+ }
+}
+