Skip to content

Commit c88d62f

Browse files
author
Kyle Wenner
committed
made gpio function selection check inline
1 parent 7608258 commit c88d62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/ard_sup/gpio/ap3_gpio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ uint8_t gpio_num_isr = 0;
1414
//*****************************************************************************
1515
// Local function declarations
1616
//*****************************************************************************
17-
uint32_t ap3_get_funct_sel(ap3_gpio_pad_t pad);
17+
static inline uint32_t ap3_get_funct_sel(ap3_gpio_pad_t pad);
1818

1919
//*****************************************************************************
2020
// Local defines.
@@ -151,7 +151,7 @@ extern void digitalWrite(uint8_t pin, uint8_t val)
151151
}
152152
}
153153

154-
uint32_t ap3_get_funct_sel(ap3_gpio_pad_t pad)
154+
static inline uint32_t ap3_get_funct_sel(ap3_gpio_pad_t pad)
155155
{
156156
uint32_t padregAddr = AM_REGADDR(GPIO, PADREGA) + (pad & ~0x3);
157157
uint32_t padShft = ((pad & 0x3) << 3);

0 commit comments

Comments
 (0)