Make F4 conditionals check STM32F4, not F4DISCOVERY.

This commit is contained in:
Gareth McMullin 2015-03-03 21:39:29 -08:00
parent 2e37db2270
commit c731c6ece3
1 changed files with 2 additions and 2 deletions

View File

@ -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;