RTEMS 6.1-rc2
|
API definitions of the GPIO driver for the lpc176x bsp in RTEMS. More...
#include <bsp/common-types.h>
Go to the source code of this file.
Data Structures | |
struct | lpc176x_interrupt_control |
GPIO Interrupt register map. More... | |
struct | lpc176x_registered_interrupt_function |
A registered interrupt function for the pin 'pin'. More... | |
Macros | |
#define | LPC176X_GPIO_BASE_ADDR 0x40028000U |
#define | LPC176X_GPIO_INTERRUPT_STATUS 0x40028080U |
#define | LPC176X_IOPIN0 |
#define | LPC176X_IOSET0 |
#define | LPC176X_IODIR0 |
#define | LPC176X_IOCLR0 |
#define | LPC176X_IOPIN1 |
#define | LPC176X_IOSET1 |
#define | LPC176X_IODIR1 |
#define | LPC176X_IOCLR1 |
#define | LPC176X_IO0_INT_EN_R |
#define | LPC176X_IO0_INT_EN_F |
#define | LPC176X_IO0_INT_STAT_R |
#define | LPC176X_IO0_INT_STAT_F |
#define | LPC176X_IO0_INT_CLR |
#define | LPC176X_IO2_INT_EN_R |
#define | LPC176X_IO2_INT_EN_F |
#define | LPC176X_IO2_INT_STAT_R |
#define | LPC176X_IO2_INT_STAT_F |
#define | LPC176X_IO2_INT_CLR |
#define | LPC176X_IO_INT_STAT |
#define | LPC176X_RESERVED_ISR_FUNCT_SIZE 2U |
#define | LPC176X_RESERVED_ISR_FUNCT_MAX_SIZE 5U |
#define | LPC176X_MAX_PORT_NUMBER 160U |
#define | LPC176X_SET_BIT(reg, pin, value) reg = ( reg & ~( 1U << pin ) ) | ( ( value & 1U ) << pin ) |
#define | LPC176X_INT_STATUS |
#define | LPC176X_INT_STATUS_P0 1U |
#define | LPC176X_INT_STATUS_P2 ( 1U << 2U ) |
#define | LPC176X_INT_ENABLE 1U |
#define | LPC176X_INT_DISABLE 0U |
#define | LPC176X_IRQ_EINT_3 21U |
#define | LPC176X_PIN_BIT(pin) ( 1U << pin ) |
Typedefs | |
typedef void(* | lpc176x_gpio_interrupt_function) (const lpc176x_pin_number pin, const lpc176x_gpio_interrupt edge) |
A function that attends an interrupt for GPIO. | |
Enumerations | |
enum | lpc176x_gpio_direction { LPC176X_GPIO_FUNCTION_INPUT , LPC176X_GPIO_FUNCTION_OUTPUT , LPC176X_GPIO_FUNCTION_COUNT } |
The direction of the GPIO port (input or output). More... | |
enum | lpc176x_gpio_interrupt { LPC176X_GPIO_INTERRUPT_DISABLE , LPC176X_GPIO_INTERRUPT_RISING , LPC176X_GPIO_INTERRUPT_FALLING , LPC176X_GPIO_INTERRUPT_BOTH , LPC176X_GPIO_INTERRUPT_COUNT } |
The interrupt sources edge for a GPIO. More... | |
enum | lpc176x_gpio_ports { LPC176X_GPIO_PORT_0 , LPC176X_GPIO_PORT_1 , LPC176X_GPIO_PORT_2 , LPC176X_GPIO_PORT_3 , LPC176X_GPIO_PORT_4 , LPC176X_GPIO_PORTS_COUNT } |
The ports for a GPIO. More... | |
enum | lpc176x_gpio_address { LPC176X_FIO0_BASE_ADDRESS = 0x2009C000U , LPC176X_FIO1_BASE_ADDRESS = 0x2009C020U , LPC176X_FIO2_BASE_ADDRESS = 0x2009C040U , LPC176X_FIO3_BASE_ADDRESS = 0x2009C060U , LPC176X_FIO4_BASE_ADDRESS = 0x2009C080U } |
Addresses for a GPIO. More... | |
enum | lpc176x_interrupt_address { LPC176X_IO0_INT_BASE_ADDRESS = 0x40028084U , LPC176X_IO2_INT_BASE_ADDRESS = 0x400280A4U } |
Addresses for the two interrupts. More... | |
API definitions of the GPIO driver for the lpc176x bsp in RTEMS.
#define LPC176X_INT_STATUS |
#define LPC176X_IO0_INT_CLR |
#define LPC176X_IO0_INT_EN_F |
#define LPC176X_IO0_INT_EN_R |
#define LPC176X_IO0_INT_STAT_F |
#define LPC176X_IO0_INT_STAT_R |
#define LPC176X_IO2_INT_CLR |
#define LPC176X_IO2_INT_EN_F |
#define LPC176X_IO2_INT_EN_R |
#define LPC176X_IO2_INT_STAT_F |
#define LPC176X_IO2_INT_STAT_R |
#define LPC176X_IO_INT_STAT |
#define LPC176X_IOCLR0 |
#define LPC176X_IOCLR1 |
#define LPC176X_IODIR0 |
#define LPC176X_IODIR1 |
#define LPC176X_IOPIN0 |
#define LPC176X_IOPIN1 |
#define LPC176X_IOSET0 |
#define LPC176X_IOSET1 |
typedef void(* lpc176x_gpio_interrupt_function) (const lpc176x_pin_number pin, const lpc176x_gpio_interrupt edge) |
A function that attends an interrupt for GPIO.
pin | Pin number. |
edge | Interrupt. |
enum lpc176x_gpio_address |
Addresses for a GPIO.
Enumerated type to define the set of fio bases addresses for a gpio device.
The direction of the GPIO port (input or output).
Enumerated type to define the set of function types for a gpio device.
The interrupt sources edge for a GPIO.
Enumerated type to define the set of interrupt types for a gpio device.
enum lpc176x_gpio_ports |
The ports for a GPIO.
Enumerated type to define the set of ports for a gpio device.
Addresses for the two interrupts.
Enumerated type to define the set of interrupt addresses for a gpio device.