Skip to content
Snippets Groups Projects
Commit 41b4d3ad authored by graham sanderson's avatar graham sanderson
Browse files

rename gpio_set_function_mask to gpio_set_function_masked to match naming...

rename gpio_set_function_mask to gpio_set_function_masked to match naming schema of other gpio functions
parent 7c5b426a
No related branches found
No related tags found
No related merge requests found
...@@ -270,7 +270,7 @@ void gpio_init_mask(uint gpio_mask) { ...@@ -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++) { for (uint i = 0; i < NUM_BANK0_GPIOS; i++) {
if (gpio_mask & 1) { if (gpio_mask & 1) {
gpio_set_function(i, fn); gpio_set_function(i, fn);
......
...@@ -192,7 +192,7 @@ void gpio_set_function(uint gpio, enum gpio_function fn); ...@@ -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 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 * \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 /*! \brief Determine current GPIO function
* \ingroup hardware_gpio * \ingroup hardware_gpio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment