22#ifndef LIBBSP_ARM_LPC176X_GPIO_H
23#define LIBBSP_ARM_LPC176X_GPIO_H
uint32_t lpc176x_pin_number
A pin of the board.
Definition: common-types.h:32
API definitions of the GPIO driver for the lpc176x bsp in RTEMS.
lpc176x_gpio_direction
The direction of the GPIO port (input or output).
Definition: gpio-defs.h:103
void(* lpc176x_gpio_interrupt_function)(const lpc176x_pin_number pin, const lpc176x_gpio_interrupt edge)
A function that attends an interrupt for GPIO.
Definition: gpio-defs.h:195
lpc176x_gpio_interrupt
The interrupt sources edge for a GPIO.
Definition: gpio-defs.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
rtems_status_code lpc176x_gpio_set_pin(lpc176x_pin_number pin)
Sets the output pin to 1.
Definition: lpc-gpio.c:324
rtems_status_code lpc176x_gpio_clear_pin(lpc176x_pin_number pin)
Sets the output pin to 0.
Definition: lpc-gpio.c:343
rtems_status_code lpc176x_gpio_get_pin_value(lpc176x_pin_number pin, bool *pin_value)
Returns the value at the given input pin.
Definition: lpc-gpio.c:378
rtems_status_code lpc176x_gpio_config_input_with_interrupt(lpc176x_pin_number pin, lpc176x_gpio_interrupt edge, lpc176x_gpio_interrupt_function isrfunct)
Configures the pin as input, enables interrupt for an edge/s and sets isrfunct as the function to cal...
Definition: lpc-gpio.c:303
rtems_status_code lpc176x_gpio_config(lpc176x_pin_number pin, lpc176x_gpio_direction dir)
Configures the pin as input or output GPIO.
Definition: lpc-gpio.c:33
rtems_status_code lpc176x_gpio_write_pin(lpc176x_pin_number pin, bool value)
Sets the output pin to 0 or 1 according to value.
Definition: lpc-gpio.c:362
Specific register definitions according to lpc176x family boards.