Line data Source code
1 0 : /* 2 : * Copyright (c) 2024 Renesas Electronics Corporation 3 : * 4 : * SPDX-License-Identifier: Apache-2.0 5 : */ 6 : 7 : #ifndef ZEPHYR_DRIVERS_MISC_RENESAS_RA_EXTERNAL_INTERRUPT_H_ 8 : #define ZEPHYR_DRIVERS_MISC_RENESAS_RA_EXTERNAL_INTERRUPT_H_ 9 : 10 : #include <zephyr/drivers/gpio.h> 11 : 12 0 : struct gpio_ra_callback { 13 0 : struct device *port; 14 0 : uint8_t port_num; 15 0 : uint8_t pin; 16 0 : enum gpio_int_trig trigger; 17 0 : enum gpio_int_mode mode; 18 0 : void (*isr)(const struct device *dev, gpio_pin_t pin); 19 : }; 20 : 21 0 : int gpio_ra_interrupt_set(const struct device *dev, struct gpio_ra_callback *callback); 22 0 : void gpio_ra_interrupt_unset(const struct device *dev, uint8_t port_num, uint8_t pin); 23 : 24 : #endif /* ZEPHYR_DRIVERS_MISC_RENESAS_RA_EXTERNAL_INTERRUPT_H_ */