rename gpio_set_function_mask to gpio_set_function_masked to match naming schema of other gpio functions

This commit is contained in:
graham sanderson 2024-07-24 07:00:37 -05:00
parent 7c5b426a0f
commit 41b4d3adb4
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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