gpio: clean up internal API function prototypes

Use gpio_pin_t uniformly when passing pin indexes to the driver.  Use
gpio_flags_t uniformly when passing flags to the driver.  Change name
of pin configuration function in API function table to be consistent
with other API functions.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-01-30 12:12:39 -06:00 committed by Carles Cufí
commit 7c95d503b0
27 changed files with 145 additions and 137 deletions

View file

@ -10,7 +10,7 @@
static inline int z_vrfy_gpio_config(struct device *port,
gpio_pin_t pin, gpio_flags_t flags)
{
Z_OOPS(Z_SYSCALL_DRIVER_GPIO(port, config));
Z_OOPS(Z_SYSCALL_DRIVER_GPIO(port, pin_configure));
return z_impl_gpio_config((struct device *)port, pin, flags);
}
#include <syscalls/gpio_config_mrsh.c>
@ -69,14 +69,14 @@ static inline int z_vrfy_gpio_pin_interrupt_configure(struct device *port,
#include <syscalls/gpio_pin_interrupt_configure_mrsh.c>
static inline int z_vrfy_gpio_enable_callback(struct device *port,
u32_t pin)
gpio_pin_t pin)
{
return z_impl_gpio_enable_callback((struct device *)port, pin);
}
#include <syscalls/gpio_enable_callback_mrsh.c>
static inline int z_vrfy_gpio_disable_callback(struct device *port,
u32_t pin)
gpio_pin_t pin)
{
return z_impl_gpio_disable_callback((struct device *)port, pin);
}