aboutsummaryrefslogtreecommitdiffstats
path: root/src/fsm/pio.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-21 21:31:09 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-21 21:31:09 +0100
commit9c7d2bf918da26d65a06f0c6b58f5626ee3d8136 (patch)
treea03c58e6959ebdfd50a4715af624db39bad10c9d /src/fsm/pio.h
parent8cd367276e0a032fb1317a4fea3c406b2d6b3dc1 (diff)
downloadglutte-o-matic-9c7d2bf918da26d65a06f0c6b58f5626ee3d8136.tar.gz
glutte-o-matic-9c7d2bf918da26d65a06f0c6b58f5626ee3d8136.tar.bz2
glutte-o-matic-9c7d2bf918da26d65a06f0c6b58f5626ee3d8136.zip
Distinguish pullup and nonpullup in PIO
Diffstat (limited to 'src/fsm/pio.h')
-rw-r--r--src/fsm/pio.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/fsm/pio.h b/src/fsm/pio.h
index ed9fd9c..181b08d 100644
--- a/src/fsm/pio.h
+++ b/src/fsm/pio.h
@@ -33,6 +33,8 @@
/* See pio.txt for PIO allocation details */
+#define INVERTED_1750 0
+
/* On GPIO C */
#define GPIO_PIN_QRP_n GPIO_Pin_1
#define GPIO_PIN_LED_red GPIO_Pin_2
@@ -52,12 +54,13 @@
#define GPIOC_OPENDRAIN_PINS 0
+#define GPIOC_INPUT_PINS 0
-#define GPIOC_INPUT_PINS GPIO_PIN_QRP_n | \
- GPIO_PIN_1750 | \
- GPIO_PIN_RX_n | \
- GPIO_PIN_U_n | \
- GPIO_PIN_D_n
+#define GPIOC_INPUT_PU_PINS GPIO_PIN_QRP_n | \
+ GPIO_PIN_U_n | \
+ GPIO_PIN_D_n | \
+ GPIO_PIN_RX_n | \
+ GPIO_PIN_1750
void pio_init(void);