From 05e9acf260f9adb1f14df038c2f005d7f473a70c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 17 Apr 2016 15:42:10 +0200 Subject: Conditionnally initialise input pins w/o pullup --- src/fsm/pio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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, -- cgit v1.2.3