Make F4 conditionals check STM32F4, not F4DISCOVERY.
This commit is contained in:
parent
2e37db2270
commit
c731c6ece3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue