From 0873e4fc167f08fbac4b188a755a61f5afb03d20 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Mon, 4 Jun 2012 00:15:40 -0400 Subject: STM32F1: gpio.h: Add hack mode macro, for F2 compatibility. I'm sure we can work the compatible subset of F1/F2 GPIO functionality into the F1 gpio.h interface in a clean way. This is not that clean way, but I'm short on time. Signed-off-by: Marti Bolivar --- libmaple/stm32f1/include/series/gpio.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmaple/stm32f1') diff --git a/libmaple/stm32f1/include/series/gpio.h b/libmaple/stm32f1/include/series/gpio.h index ec4a39c..2f96a08 100644 --- a/libmaple/stm32f1/include/series/gpio.h +++ b/libmaple/stm32f1/include/series/gpio.h @@ -135,6 +135,9 @@ typedef enum gpio_pin_mode { GPIO_INPUT_PU, /* (treated a special case, for ODR twiddling) */ } gpio_pin_mode; +/* Hacks for F2: */ +#define GPIO_MODE_ANALOG GPIO_INPUT_ANALOG + /* * AFIO register map */ -- cgit v1.2.3