Skip to content

Commit

Permalink
Merge pull request #20737 from steverpalmer/master
Browse files Browse the repository at this point in the history
Remove extraneous bitwise assignment operation on NRF5X_common gpio.c
  • Loading branch information
dylad authored Jun 9, 2024
2 parents b6696e0 + 2164352 commit 8156bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/nrf5x_common/periph/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ int gpio_init_int(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank,
#endif
(flank << GPIOTE_CONFIG_POLARITY_Pos));
/* enable external interrupt */
NRF_GPIOTE->INTENSET |= (GPIOTE_INTENSET_IN0_Msk << _pin_index);
NRF_GPIOTE->INTENSET = (GPIOTE_INTENSET_IN0_Msk << _pin_index);

return 0;
}
Expand All @@ -213,7 +213,7 @@ void gpio_irq_enable(gpio_t pin)
for (unsigned int i = 0; i < _gpiote_next_index; i++) {
if (_exti_pins[i] == pin) {
NRF_GPIOTE->CONFIG[i] |= GPIOTE_CONFIG_MODE_Event;
NRF_GPIOTE->INTENSET |= (GPIOTE_INTENSET_IN0_Msk << i);
NRF_GPIOTE->INTENSET = (GPIOTE_INTENSET_IN0_Msk << i);
break;
}
}
Expand Down

0 comments on commit 8156bb8

Please sign in to comment.