api: gpio: do not support INT flags in gpio_pin_configure
To keep compatibility between the old GPIO API implementation and a new one introduced in the Zephyr 2.2.0 release the gpio_pin_configure() function was accepting interrupt flags. In the new API implementation interrupt flags are only accepted by gpio_pin_interrupt_configure() function. This temporary support for INT flags in gpio_pin_configure should have been removed in the Zephyr 2.4.0 release. Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
8f559a3260
commit
3632815e2e
3 changed files with 29 additions and 31 deletions
|
@ -7,13 +7,16 @@
|
|||
#include <drivers/gpio.h>
|
||||
#include <syscall_handler.h>
|
||||
|
||||
static inline int z_vrfy_gpio_config(const struct device *port,
|
||||
gpio_pin_t pin, gpio_flags_t flags)
|
||||
static inline int z_vrfy_gpio_pin_configure(const struct device *port,
|
||||
gpio_pin_t pin,
|
||||
gpio_flags_t flags)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_GPIO(port, pin_configure));
|
||||
return z_impl_gpio_config((const struct device *)port, pin, flags);
|
||||
return z_impl_gpio_pin_configure((const struct device *)port,
|
||||
pin,
|
||||
flags);
|
||||
}
|
||||
#include <syscalls/gpio_config_mrsh.c>
|
||||
#include <syscalls/gpio_pin_configure_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_gpio_port_get_raw(const struct device *port,
|
||||
gpio_port_value_t *value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue