Linux Kernel
3.7.1
|
Go to the source code of this file.
Enumerations | |
enum | msp_gpio_data { MSP_GPIO_LO = 0, MSP_GPIO_HI = 1, MSP_GPIO_NONE, MSP_GPIO_TOGGLE } |
enum | msp_gpio_mode { MSP_GPIO_INPUT = 0x0, MSP_GPIO_UART_INPUT = 0x2, MSP_GPIO_OUTPUT = 0x8, MSP_GPIO_UART_OUTPUT = 0x9, MSP_GPIO_PERIF_TIMERA = 0x9, MSP_GPIO_PERIF_TIMERB = 0xa, MSP_GPIO_UNKNOWN = 0xb } |
#define BASIC_DATA_MASK | ( | gpio | ) | BASIC_DATA_REG_MASK(OFFSET_GPIO_NUMBER(gpio)) |
Definition at line 143 of file msp_gpio_macros.h.
#define BASIC_DATA_REG_MASK | ( | ogpio | ) | (1 << ogpio) |
Definition at line 133 of file msp_gpio_macros.h.
#define BASIC_MODE | ( | mode, | |
gpio | |||
) | BASIC_MODE_REG_VALUE(mode, OFFSET_GPIO_NUMBER(gpio)) |
Definition at line 147 of file msp_gpio_macros.h.
#define BASIC_MODE_FROM_REG | ( | data, | |
gpio | |||
) | BASIC_MODE_REG_FROM_REG(data, OFFSET_GPIO_NUMBER(gpio)) |
Definition at line 151 of file msp_gpio_macros.h.
#define BASIC_MODE_MASK | ( | gpio | ) | BASIC_MODE_REG_MASK(OFFSET_GPIO_NUMBER(gpio)) |
Definition at line 145 of file msp_gpio_macros.h.
#define BASIC_MODE_REG_FROM_REG | ( | data, | |
ogpio | |||
) | ((data & BASIC_MODE_REG_MASK(ogpio)) >> BASIC_MODE_REG_SHIFT(ogpio)) |
Definition at line 139 of file msp_gpio_macros.h.
#define BASIC_MODE_REG_MASK | ( | ogpio | ) | BASIC_MODE_REG_VALUE(0xf, ogpio) |
Definition at line 136 of file msp_gpio_macros.h.
#define BASIC_MODE_REG_SHIFT | ( | ogpio | ) | (ogpio * 4) |
Definition at line 138 of file msp_gpio_macros.h.
#define BASIC_MODE_REG_VALUE | ( | mode, | |
ogpio | |||
) | (mode << BASIC_MODE_REG_SHIFT(ogpio)) |
Definition at line 134 of file msp_gpio_macros.h.
#define BASIC_MODE_SHIFT | ( | gpio | ) | BASIC_MODE_REG_SHIFT(OFFSET_GPIO_NUMBER(gpio)) |
Definition at line 149 of file msp_gpio_macros.h.
#define EXTENDED_CLR | ( | gpio | ) | EXTENDED_REG_CLR(EXTENDED_OFFSET_GPIO(gpio)) |
Definition at line 190 of file msp_gpio_macros.h.
#define EXTENDED_DISABLE | ( | gpio | ) | EXTENDED_REG_DISABLE(EXTENDED_OFFSET_GPIO(gpio)) |
Definition at line 184 of file msp_gpio_macros.h.
#define EXTENDED_ENABLE | ( | gpio | ) | EXTENDED_REG_ENABLE(EXTENDED_OFFSET_GPIO(gpio)) |
Definition at line 186 of file msp_gpio_macros.h.
#define EXTENDED_FULL_MASK (0xffffffff) |
Definition at line 193 of file msp_gpio_macros.h.
Definition at line 175 of file msp_gpio_macros.h.
#define EXTENDED_REG_CLR | ( | ogpio | ) | (0x1 << (ogpio * 2)) |
Definition at line 181 of file msp_gpio_macros.h.
#define EXTENDED_REG_DISABLE | ( | ogpio | ) | (0x2 << ((ogpio * 2) + 16)) |
Definition at line 178 of file msp_gpio_macros.h.
#define EXTENDED_REG_ENABLE | ( | ogpio | ) | (0x1 << ((ogpio * 2) + 16)) |
Definition at line 179 of file msp_gpio_macros.h.
#define EXTENDED_REG_SET | ( | ogpio | ) | (0x2 << (ogpio * 2)) |
Definition at line 180 of file msp_gpio_macros.h.
#define EXTENDED_SET | ( | gpio | ) | EXTENDED_REG_SET(EXTENDED_OFFSET_GPIO(gpio)) |
Definition at line 188 of file msp_gpio_macros.h.
#define MSP_NUM_GPIOS 28 |
Definition at line 38 of file msp_gpio_macros.h.
Definition at line 130 of file msp_gpio_macros.h.
enum msp_gpio_data |
Definition at line 42 of file msp_gpio_macros.h.
enum msp_gpio_mode |
MSP_GPIO_INPUT | |
MSP_GPIO_UART_INPUT | |
MSP_GPIO_OUTPUT | |
MSP_GPIO_UART_OUTPUT | |
MSP_GPIO_PERIF_TIMERA | |
MSP_GPIO_PERIF_TIMERB | |
MSP_GPIO_UNKNOWN |
Definition at line 49 of file msp_gpio_macros.h.