mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
rename gpio_set_function_mask to gpio_set_function_masked to match naming schema of other gpio functions
This commit is contained in:
parent
7c5b426a0f
commit
41b4d3adb4
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
* \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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue