F4Discovery: Slow Down GPIO access a little, as off-board SWD otherwise needs _very_ good ground connection.
This commit is contained in:
parent
ad151fdca8
commit
f1ea5ed8f9
|
@ -193,12 +193,14 @@ void uart_usb_buf_drain(uint8_t ep);
|
|||
static inline void _gpio_set(u32 gpioport, u16 gpios)
|
||||
{
|
||||
GPIO_BSRR(gpioport) = gpios;
|
||||
GPIO_BSRR(gpioport) = gpios;
|
||||
}
|
||||
#define gpio_set _gpio_set
|
||||
|
||||
static inline void _gpio_clear(u32 gpioport, u16 gpios)
|
||||
{
|
||||
GPIO_BSRR(gpioport) = gpios<<16;
|
||||
GPIO_BSRR(gpioport) = gpios<<16;
|
||||
}
|
||||
#define gpio_clear _gpio_clear
|
||||
|
||||
|
|
Loading…
Reference in New Issue