mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-31 17:31:18 +01:00
Merge pull request #9699 from miri64/nrf5x_common/fix/gpio-unused-function
nrf5x_common: gpio: remove unused pin_num() function
This commit is contained in:
commit
2d10390b56
@ -55,18 +55,6 @@ static inline NRF_GPIO_Type* port(gpio_t pin)
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get a pin's offset
|
||||
*/
|
||||
static inline int pin_num(gpio_t pin)
|
||||
{
|
||||
#ifdef CPU_MODEL_NRF52840XXAA
|
||||
return (pin & PIN_MASK);
|
||||
#else
|
||||
return (int)pin;
|
||||
#endif
|
||||
}
|
||||
|
||||
int gpio_init(gpio_t pin, gpio_mode_t mode)
|
||||
{
|
||||
switch (mode) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user