45 IMX_GPIO_MODE_INTERRUPT_LOW,
46 IMX_GPIO_MODE_INTERRUPT_HIGH,
47 IMX_GPIO_MODE_INTERRUPT_RISING,
48 IMX_GPIO_MODE_INTERRUPT_FALLING,
49 IMX_GPIO_MODE_INTERRUPT_ANY_EDGE,
106 const uint32_t *prop_pointer,
107 enum imx_gpio_mode mode,
108 const uint32_t **next_prop_pointer);
131 const char *property,
132 enum imx_gpio_mode mode,
161struct imx_gpio *imx_gpio_get_by_index(
unsigned idx);
166struct imx_gpio *imx_gpio_get_by_register(
void *regs);
177void imx_gpio_set_output(
struct imx_gpio_pin *pin, uint32_t set);
208void imx_gpio_clear_isr(
struct imx_gpio_pin *pin, uint32_t clr);
214static inline uint32_t imx_gpio_get_active_level(
struct imx_gpio_pin *pin)
223static inline uint32_t imx_gpio_get_inactive_level(
struct imx_gpio_pin *pin)
225 return ~imx_gpio_get_active_level(pin);
233#define IMX_GPIO1 (imx_gpio_get_by_index(0))
234#define IMX_GPIO2 (imx_gpio_get_by_index(1))
235#define IMX_GPIO3 (imx_gpio_get_by_index(2))
236#define IMX_GPIO4 (imx_gpio_get_by_index(3))
237#define IMX_GPIO5 (imx_gpio_get_by_index(4))
238#define IMX_GPIO6 (imx_gpio_get_by_index(5))
239#define IMX_GPIO7 (imx_gpio_get_by_index(6))
ISR_Vector_number rtems_vector_number
This integer type represents interrupt vector numbers.
Definition: intr.h:102
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
This header file defines the RTEMS Classic API.
Definition: imx-gpio.h:59
enum imx_gpio_mode mode
Definition: imx-gpio.h:70
bool is_active_low
Definition: imx-gpio.h:75
unsigned int shift
Definition: imx-gpio.h:68
volatile struct imx_gpio * gpio
Definition: imx-gpio.h:61
uint32_t mask
Definition: imx-gpio.h:66
Definition: imx-gpio.c:69