Skip to content

Commit

Permalink
fix rushed copy/paste; DIR=0 disables the output, not DIR=1
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Jul 16, 2024
1 parent 29c3ecf commit 170f1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/hal_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
\
static inline void HAL_GPIO_##name##_off(void) \
{ \
PORT->Group[HAL_GPIO_PORT##port].DIRSET.reg = (1 << pin); \
PORT->Group[HAL_GPIO_PORT##port].DIRCLR.reg = (1 << pin); \
PORT->Group[HAL_GPIO_PORT##port].PINCFG[pin].reg &= ~(PORT_PINCFG_PULLEN | PORT_PINCFG_INEN); \
(void)HAL_GPIO_##name##_off; \
} \
Expand Down

0 comments on commit 170f1b3

Please sign in to comment.