1 /*
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 struct gpio_ra_callback {
13 	struct device *port;
14 	uint8_t port_num;
15 	uint8_t pin;
16 	enum gpio_int_trig trigger;
17 	enum gpio_int_mode mode;
18 	void (*isr)(const struct device *dev, gpio_pin_t pin);
19 };
20 
21 int gpio_ra_interrupt_set(const struct device *dev, struct gpio_ra_callback *callback);
22 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_ */
25