From 16367c2a9da68c6c813537ea905a227864aec30f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 10 Jul 2016 08:57:18 +0200 Subject: Invert REPLIE signal in software --- src/glutt-o-logique/pio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/glutt-o-logique') diff --git a/src/glutt-o-logique/pio.c b/src/glutt-o-logique/pio.c index 003b50b..7220b80 100644 --- a/src/glutt-o-logique/pio.c +++ b/src/glutt-o-logique/pio.c @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2015 Matthias P. Braendli + * Copyright (c) 2016 Matthias P. Braendli * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -36,7 +36,7 @@ #define GPIO_PIN_U GPIO_Pin_8 #define GPIO_PIN_QRP_out GPIO_Pin_9 #define GPIO_PIN_D GPIO_Pin_11 -#define GPIO_PIN_REPLIE_n GPIO_Pin_13 +#define GPIO_PIN_REPLIE GPIO_Pin_13 #define GPIO_PIN_FAX GPIO_Pin_14 #define GPIO_PIN_GPS_EPPS GPIO_Pin_15 @@ -57,7 +57,7 @@ GPIO_PIN_SQ_n | \ GPIO_PIN_U | \ GPIO_PIN_D | \ - GPIO_PIN_REPLIE_n | \ + GPIO_PIN_REPLIE | \ GPIO_PIN_FAX | \ 0 ) @@ -146,7 +146,7 @@ void read_fsm_input_task(void __attribute__ ((unused))*pvParameters) GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_D) ? 1 : 0; pio_signals.wind_generator_ok = - GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_REPLIE_n) ? 1 : 0; + GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_REPLIE) ? 0 : 1; pio_signals.sstv_mode = GPIO_ReadInputDataBit(GPIOC, GPIO_PIN_FAX) ? 1 : 0; -- cgit v1.2.3