1
0
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:
Kaspar Schleiser 2018-08-03 16:34:14 +02:00 committed by GitHub
commit 2d10390b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {