openMMC
Open Source Modular MMC for AMCs
|
#include "gpio_17xx_40xx.h"
Go to the source code of this file.
Macros | |
#define | LPC17_GPIO_H_ |
GPIO functions redirection for LPC17xx. | |
#define | GPIO_LEVEL_LOW 0 |
#define | GPIO_LEVEL_HIGH 1 |
#define | GPIO_DIR_INPUT 0 |
#define | GPIO_DIR_OUTPUT 1 |
#define | gpio_init() Chip_GPIO_Init( LPC_GPIO ) |
Initialize GPIO block. | |
#define | gpio_read_pin(port, pin) Chip_GPIO_GetPinState( LPC_GPIO, port, pin ) |
Reads a GPIO pin state. | |
#define | gpio_read_port(port) Chip_GPIO_GetPortValue( LPC_GPIO, port ) |
Reads a GPIO port state. | |
#define | gpio_set_pin_high(port, pin) Chip_GPIO_SetPinOutHigh( LPC_GPIO, port, pin ) |
Set an individual GPIO output pin to the high state. | |
#define | gpio_set_port_high(port, mask) Chip_GPIO_SetPortOutHigh( LPC_GPIO, port, mask ) |
Set selected GPIO output pins to the high state. | |
#define | gpio_set_pin_low(port, pin) Chip_GPIO_SetPinOutLow( LPC_GPIO, port, pin ) |
Set an individual GPIO output pin to the high state. | |
#define | gpio_set_port_low(port, mask) Chip_GPIO_SetPortOutLow( LPC_GPIO, port, mask ) |
Set selected GPIO output pins to the high state. | |
#define | gpio_pin_toggle(port, pin) Chip_GPIO_SetPinToggle( LPC_GPIO, port, pin ) |
Toggle an individual GPIO output pin to the opposite state. | |
#define | gpio_set_pin_state(port, pin, state) Chip_GPIO_SetPinState( LPC_GPIO, port, pin, state ) |
Set a GPIO pin to the specified state. | |
#define | gpio_set_pin_dir(port, pin, dir) Chip_GPIO_SetPinDIR( LPC_GPIO, port, pin, dir ) |
Set a GPIO pin direction. | |
#define | gpio_get_pin_dir(port, pin) Chip_GPIO_GetPinDIR( LPC_GPIO, port, pin ) |
Get a GPIO pin direction. | |
#define | gpio_set_port_dir(port, dir) Chip_GPIO_SetPortDIR( LPC_GPIO, port, dir ) |
Set a GPIO port direction. | |
#define | gpio_get_port_dir(port) Chip_GPIO_GetPortDIR( LPC_GPIO, port ) |
Get a GPIO port direction. | |
#define GPIO_DIR_INPUT 0 |
#define GPIO_DIR_OUTPUT 1 |
#define gpio_get_pin_dir | ( | port, | |
pin ) Chip_GPIO_GetPinDIR( LPC_GPIO, port, pin ) |
Get a GPIO pin direction.
port | : GPIO Port number where pin is located |
pin | : pin number |
#define gpio_get_port_dir | ( | port | ) | Chip_GPIO_GetPortDIR( LPC_GPIO, port ) |
Get a GPIO port direction.
port | : GPIO Port number |
#define gpio_init | ( | ) | Chip_GPIO_Init( LPC_GPIO ) |
Initialize GPIO block.
#define GPIO_LEVEL_HIGH 1 |
#define GPIO_LEVEL_LOW 0 |
#define gpio_pin_toggle | ( | port, | |
pin ) Chip_GPIO_SetPinToggle( LPC_GPIO, port, pin ) |
Toggle an individual GPIO output pin to the opposite state.
port | : GPIO Port number where the pin is located |
pin | : pin number |
#define gpio_read_pin | ( | port, | |
pin ) Chip_GPIO_GetPinState( LPC_GPIO, port, pin ) |
Reads a GPIO pin state.
port | : GPIO Port number where pin is located |
pin | : GPIO pin to get state for |
#define gpio_read_port | ( | port | ) | Chip_GPIO_GetPortValue( LPC_GPIO, port ) |
Reads a GPIO port state.
port | : GPIO Port number |
#define gpio_set_pin_dir | ( | port, | |
pin, | |||
dir ) Chip_GPIO_SetPinDIR( LPC_GPIO, port, pin, dir ) |
Set a GPIO pin direction.
port | : GPIO Port number where pin is located |
pin | : pin number |
dir | : true (1) for OUTPUT, false (0) for INPUT |
#define gpio_set_pin_high | ( | port, | |
pin ) Chip_GPIO_SetPinOutHigh( LPC_GPIO, port, pin ) |
Set an individual GPIO output pin to the high state.
port | : GPIO Port number where pin is located |
pin | : pin number |
#define gpio_set_pin_low | ( | port, | |
pin ) Chip_GPIO_SetPinOutLow( LPC_GPIO, port, pin ) |
Set an individual GPIO output pin to the high state.
port | : GPIO Port number where pin is located |
pin | : pin number |
#define gpio_set_pin_state | ( | port, | |
pin, | |||
state ) Chip_GPIO_SetPinState( LPC_GPIO, port, pin, state ) |
Set a GPIO pin to the specified state.
port | : GPIO Port number where pin is located |
pin | : pin number |
state | : true (1) for high, false (0) for low |
#define gpio_set_port_dir | ( | port, | |
dir ) Chip_GPIO_SetPortDIR( LPC_GPIO, port, dir ) |
Set a GPIO port direction.
port | : GPIO Port number |
dir | : Bitfield indicating all pins direction (true (1) for OUTPUT, false (0) for INPUT ) |
#define gpio_set_port_high | ( | port, | |
mask ) Chip_GPIO_SetPortOutHigh( LPC_GPIO, port, mask ) |
Set selected GPIO output pins to the high state.
port | : GPIO Port number where pin is located |
mask | : Selected pins to set high |
#define gpio_set_port_low | ( | port, | |
mask ) Chip_GPIO_SetPortOutLow( LPC_GPIO, port, mask ) |
Set selected GPIO output pins to the high state.
port | : GPIO Port number where pin is located |
mask | : Selected pins to set high |
#define LPC17_GPIO_H_ |
GPIO functions redirection for LPC17xx.