F4Discovery: Slow Down GPIO access a little, as off-board SWD otherwise needs _very_ good ground connection.

This commit is contained in:
Uwe Bonnes 2013-04-21 14:55:10 +02:00 committed by Gareth McMullin
parent ad151fdca8
commit f1ea5ed8f9
1 changed files with 2 additions and 0 deletions

View File

@ -193,12 +193,14 @@ void uart_usb_buf_drain(uint8_t ep);
static inline void _gpio_set(u32 gpioport, u16 gpios) static inline void _gpio_set(u32 gpioport, u16 gpios)
{ {
GPIO_BSRR(gpioport) = gpios; GPIO_BSRR(gpioport) = gpios;
GPIO_BSRR(gpioport) = gpios;
} }
#define gpio_set _gpio_set #define gpio_set _gpio_set
static inline void _gpio_clear(u32 gpioport, u16 gpios) static inline void _gpio_clear(u32 gpioport, u16 gpios)
{ {
GPIO_BSRR(gpioport) = gpios<<16; GPIO_BSRR(gpioport) = gpios<<16;
GPIO_BSRR(gpioport) = gpios<<16;
} }
#define gpio_clear _gpio_clear #define gpio_clear _gpio_clear