gpio: deprecate gpio pin callback enable and disable API
These have been replaced by the appropriate call to gpio_pin_interrupt_configure(). While the disable function could be implemented using the new functionality, the enable function cannot because the interrupt mode is not available. Consequently we cannot replace these with equivalent functionality using the legacy API. Clean up the internal implementation by removing the inaccessible port-based enable/disable feature, leaving the pin-based capability in place. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
e999f7c6fb
commit
1947481cce
22 changed files with 90 additions and 302 deletions
|
@ -68,18 +68,16 @@ 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,
|
||||
int access_op, u32_t pin)
|
||||
u32_t pin)
|
||||
{
|
||||
return z_impl_gpio_enable_callback((struct device *)port, access_op,
|
||||
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,
|
||||
int access_op, u32_t pin)
|
||||
u32_t pin)
|
||||
{
|
||||
return z_impl_gpio_disable_callback((struct device *)port, access_op,
|
||||
pin);
|
||||
return z_impl_gpio_disable_callback((struct device *)port, pin);
|
||||
}
|
||||
#include <syscalls/gpio_disable_callback_mrsh.c>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue