gpio: remove unused internal API
Remove macros and a state structure that are not used anywhere and incompletely describe a GPIO pin specifier. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
d3281f5b6f
commit
d85a9e30d1
1 changed files with 0 additions and 28 deletions
|
@ -1387,34 +1387,6 @@ static inline int z_impl_gpio_get_pending_int(struct device *dev)
|
|||
return api->get_pending_int(dev);
|
||||
}
|
||||
|
||||
/** @cond INTERNAL_HIDDEN */
|
||||
struct gpio_pin_config {
|
||||
char *gpio_controller;
|
||||
u32_t gpio_pin;
|
||||
};
|
||||
|
||||
#define GPIO_DECLARE_PIN_CONFIG_IDX(_idx) \
|
||||
struct gpio_pin_config gpio_pin_ ##_idx
|
||||
#define GPIO_DECLARE_PIN_CONFIG \
|
||||
GPIO_DECLARE_PIN_CONFIG_IDX()
|
||||
|
||||
#define GPIO_PIN_IDX(_idx, _controller, _pin) \
|
||||
.gpio_pin_ ##_idx = { \
|
||||
.gpio_controller = (_controller),\
|
||||
.gpio_pin = (_pin), \
|
||||
}
|
||||
#define GPIO_PIN(_controller, _pin) \
|
||||
GPIO_PIN_IDX(, _controller, _pin)
|
||||
|
||||
#define GPIO_GET_CONTROLLER_IDX(_idx, _conf) \
|
||||
((_conf)->gpio_pin_ ##_idx.gpio_controller)
|
||||
#define GPIO_GET_PIN_IDX(_idx, _conf) \
|
||||
((_conf)->gpio_pin_ ##_idx.gpio_pin)
|
||||
|
||||
#define GPIO_GET_CONTROLLER(_conf) GPIO_GET_CONTROLLER_IDX(, _conf)
|
||||
#define GPIO_GET_PIN(_conf) GPIO_GET_PIN_IDX(, _conf)
|
||||
/** @endcond */
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue