From c731c6ece343c48296355b8cfde58067c2f44853 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Tue, 3 Mar 2015 21:39:29 -0800 Subject: [PATCH] Make F4 conditionals check STM32F4, not F4DISCOVERY. --- src/platforms/stm32/gpio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/stm32/gpio.h b/src/platforms/stm32/gpio.h index ee8275e..d39fd4f 100644 --- a/src/platforms/stm32/gpio.h +++ b/src/platforms/stm32/gpio.h @@ -43,7 +43,7 @@ static inline void _gpio_set(uint32_t gpioport, uint16_t gpios) { GPIO_BSRR(gpioport) = gpios; -#ifdef F4DISCOVERY +#ifdef STM32F4 GPIO_BSRR(gpioport) = gpios; #endif } @@ -51,7 +51,7 @@ static inline void _gpio_set(uint32_t gpioport, uint16_t gpios) static inline void _gpio_clear(uint32_t gpioport, uint16_t gpios) { -#ifndef F4DISCOVERY +#ifndef STM32F4 GPIO_BRR(gpioport) = gpios; #else GPIO_BSRR(gpioport) = gpios<<16;