diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-10 08:57:18 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-10 08:57:18 +0200 |
commit | 16367c2a9da68c6c813537ea905a227864aec30f (patch) | |
tree | c7b8a184bf9cbba7ff0646eb8780f7a6768d4e81 /src/glutt-o-logique | |
parent | ccecb8267756fbb63b1729193a0f87079f2d7896 (diff) | |
download | glutte-o-matic-16367c2a9da68c6c813537ea905a227864aec30f.tar.gz glutte-o-matic-16367c2a9da68c6c813537ea905a227864aec30f.tar.bz2 glutte-o-matic-16367c2a9da68c6c813537ea905a227864aec30f.zip |
Invert REPLIE signal in software
Diffstat (limited to 'src/glutt-o-logique')
-rw-r--r-- | src/glutt-o-logique/pio.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |