Skip to content

Commit 41b4d3a

Browse files
committed
rename gpio_set_function_mask to gpio_set_function_masked to match naming schema of other gpio functions
1 parent 7c5b426 commit 41b4d3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rp2_common/hardware_gpio/gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void gpio_init_mask(uint gpio_mask) {
270270
}
271271
}
272272

273-
void gpio_set_function_mask(uint gpio_mask, enum gpio_function fn) {
273+
void gpio_set_function_masked(uint gpio_mask, enum gpio_function fn) {
274274
for (uint i = 0; i < NUM_BANK0_GPIOS; i++) {
275275
if (gpio_mask & 1) {
276276
gpio_set_function(i, fn);

src/rp2_common/hardware_gpio/include/hardware/gpio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void gpio_set_function(uint gpio, enum gpio_function fn);
192192
* \param gpio_mask Mask with 1 bit per GPIO number to set the function for
193193
* \param fn Which GPIO function select to use from list \ref gpio_function
194194
*/
195-
void gpio_set_function_mask(uint gpio_mask, enum gpio_function fn);
195+
void gpio_set_function_masked(uint gpio_mask, enum gpio_function fn);
196196

197197
/*! \brief Determine current GPIO function
198198
* \ingroup hardware_gpio

0 commit comments

Comments
 (0)