Skip to content

Commit

Permalink
rename gpio_set_function_mask to gpio_set_function_masked to match na…
Browse files Browse the repository at this point in the history
…ming schema of other gpio functions
  • Loading branch information
kilograham committed Jul 24, 2024
1 parent 7c5b426 commit 41b4d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rp2_common/hardware_gpio/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void gpio_init_mask(uint gpio_mask) {
}
}

void gpio_set_function_mask(uint gpio_mask, enum gpio_function fn) {
void gpio_set_function_masked(uint gpio_mask, enum gpio_function fn) {
for (uint i = 0; i < NUM_BANK0_GPIOS; i++) {
if (gpio_mask & 1) {
gpio_set_function(i, fn);
Expand Down
2 changes: 1 addition & 1 deletion src/rp2_common/hardware_gpio/include/hardware/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void gpio_set_function(uint gpio, enum gpio_function fn);
* \param gpio_mask Mask with 1 bit per GPIO number to set the function for
* \param fn Which GPIO function select to use from list \ref gpio_function
*/
void gpio_set_function_mask(uint gpio_mask, enum gpio_function fn);
void gpio_set_function_masked(uint gpio_mask, enum gpio_function fn);

/*! \brief Determine current GPIO function
* \ingroup hardware_gpio
Expand Down

0 comments on commit 41b4d3a

Please sign in to comment.