8#ifndef ZEPHYR_DRIVERS_GPIO_GPIO_RTS5912_H_
9#define ZEPHYR_DRIVERS_GPIO_GPIO_RTS5912_H_
13#include <reg/reg_gpio.h>
26 *gcr &= ~(GPIO_GCR_MFCTRL_Msk | GPIO_GCR_DIR_Msk);
27 *gcr |=
BIT(GPIO_GCR_INTCTRL_Pos) | GPIO_GCR_INTSTS_Msk | GPIO_GCR_INTEN_Msk |
Main header file for GPIO driver API.
uint32_t * gpio_rts5912_get_port_address(const struct gpio_dt_spec *gpio)
static ALWAYS_INLINE void gpio_rts5912_set_wakeup_pin(uint32_t pin_num)
Definition gpio_rts5912.h:21
int gpio_rts5912_get_pin_num(const struct gpio_dt_spec *gpio)
gpio_pin_t gpio_rts5912_get_intr_pin(volatile uint32_t *reg_base)
#define DT_NODELABEL(label)
Get a node identifier for a node label.
Definition devicetree.h:196
#define DT_REG_ADDR(node_id)
Get a node's (only) register block address.
Definition devicetree.h:2461
uint8_t gpio_pin_t
Provides a type to hold a GPIO pin index.
Definition gpio.h:262
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Container for GPIO pin information specified in devicetree.
Definition gpio.h:296