gpio: use reduced-size role typedef for public API pin indexes
There is a typedef used to store pin indexes in configuration structures. For consistency it should also be used to identify pin indexes in function prototypes. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
c7d526be04
commit
f017209821
2 changed files with 19 additions and 16 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_gpio_config(struct device *port,
|
||||
u32_t pin, gpio_flags_t flags)
|
||||
gpio_pin_t pin, gpio_flags_t flags)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_GPIO(port, config));
|
||||
return z_impl_gpio_config((struct device *)port, pin, flags);
|
||||
|
@ -59,7 +59,8 @@ static inline int z_vrfy_gpio_port_toggle_bits(struct device *port,
|
|||
#include <syscalls/gpio_port_toggle_bits_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_gpio_pin_interrupt_configure(struct device *port,
|
||||
unsigned int pin, unsigned int flags)
|
||||
gpio_pin_t pin,
|
||||
gpio_flags_t flags)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_GPIO(port, pin_interrupt_configure));
|
||||
return z_impl_gpio_pin_interrupt_configure((struct device *)port, pin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue