aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-04-17 15:42:10 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-04-17 15:42:10 +0200
commit05e9acf260f9adb1f14df038c2f005d7f473a70c (patch)
tree160ab369c2472e8f757fdc7bef8e5432b0a37ce7 /src
parentc8e31b80dde02ef5736ffa7af4565a827f4c9222 (diff)
downloadglutte-o-matic-05e9acf260f9adb1f14df038c2f005d7f473a70c.tar.gz
glutte-o-matic-05e9acf260f9adb1f14df038c2f005d7f473a70c.tar.bz2
glutte-o-matic-05e9acf260f9adb1f14df038c2f005d7f473a70c.zip
Conditionnally initialise input pins w/o pullup
Diffstat (limited to 'src')
-rw-r--r--src/fsm/pio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fsm/pio.c b/src/fsm/pio.c
index 418f24a..2ff5447 100644
--- a/src/fsm/pio.c
+++ b/src/fsm/pio.c
@@ -65,12 +65,14 @@ void pio_init()
GPIO_Init(GPIOC, &GPIO_InitStructure);
#endif
+#if defined(GPIOC_INPUT_PINS)
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_Pin = GPIOC_INPUT_PINS;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_Init(GPIOC, &GPIO_InitStructure);
+#endif
xTaskCreate(
read_fsm_input_task,