drivers: gpio: lmp90xxx: update to use new GPIO API
Update the TI LMP90xxx GPIO driver to the new GPIO API. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
b6aff042d5
commit
82ecb89dae
3 changed files with 215 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
#define ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_
|
||||
|
||||
#include <device.h>
|
||||
#include <zephyr/types.h>
|
||||
#include <drivers/gpio.h>
|
||||
|
||||
/* LMP90xxx supports GPIO D0..D6 */
|
||||
#define LMP90XXX_GPIO_MAX 6
|
||||
|
@ -21,4 +21,17 @@ int lmp90xxx_gpio_set_pin_value(struct device *dev, u8_t pin, bool value);
|
|||
|
||||
int lmp90xxx_gpio_get_pin_value(struct device *dev, u8_t pin, bool *value);
|
||||
|
||||
int lmp90xxx_gpio_port_get_raw(struct device *dev, gpio_port_value_t *value);
|
||||
|
||||
int lmp90xxx_gpio_port_set_masked_raw(struct device *dev,
|
||||
gpio_port_pins_t mask,
|
||||
gpio_port_value_t value);
|
||||
|
||||
int lmp90xxx_gpio_port_set_bits_raw(struct device *dev, gpio_port_pins_t pins);
|
||||
|
||||
int lmp90xxx_gpio_port_clear_bits_raw(struct device *dev,
|
||||
gpio_port_pins_t pins);
|
||||
|
||||
int lmp90xxx_gpio_port_toggle_bits(struct device *dev, gpio_port_pins_t pins);
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue