Go to the documentation of this file.
39 #define PM_NUM_MODES (3)
49 uint32_t _reserved[3];
67 #define FIO_PORTS ((FIO_PORT_t*)FIO_BASE_ADDR)
72 #define PINSEL ((__IO uint32_t *)(PINSEL_BASE_ADDR))
77 #define PINMODE ((__IO uint32_t *)(PINSEL_BASE_ADDR + 0x40))
90 #define GPIO_PIN(port, pin) (port<<5 | pin)
93 #define HAVE_GPIO_FLANK_T
129 #define TIMER_CHANNEL_NUMOF (4U)
134 #define PERIPH_TIMER_PROVIDES_SET
140 #define PERIPH_SPI_NEEDS_INIT_CS
141 #define PERIPH_SPI_NEEDS_TRANSFER_BYTE
142 #define PERIPH_SPI_NEEDS_TRANSFER_REG
143 #define PERIPH_SPI_NEEDS_TRANSFER_REGS
151 #define HAVE_SPI_CLK_T
172 #define DAC_NUMOF (1U)
179 #define HAVE_ADC_RES_T
185 ADC_RES_9BIT = 0b001,
187 ADC_RES_7BIT = 0b011,
189 ADC_RES_5BIT = 0b101,
190 ADC_RES_4BIT = 0b110,
191 ADC_RES_3BIT = 0b111,
210 #define HAVE_I2C_SPEED_T
237 #define PERIPH_I2C_NEED_READ_REG
238 #define PERIPH_I2C_NEED_WRITE_REG
246 #if defined(MODULE_PERIPH_RTC) && !defined(RTC_NORMALIZE_COMPAT)
247 #define RTC_NORMALIZE_COMPAT (1)
@ SPI_CLK_400KHZ
drive the SPI bus with 400KHz
@ SPI_CLK_100KHZ
drive the SPI bus with 100KHz
@ ADC_RES_6BIT
ADC resolution: 6 bit.
uint8_t pinsel_rx
PINSEL# of the RX pin
uint32_t pinsel_msk_mosi
MOSI PINSEL Mask
@ I2C_SPEED_LOW
low speed mode: ~10 kbit/s
lpc23xx_spi_t * dev
pointer to the SPI device
uint8_t pinsel
PINSEL# of the ADC pin
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
uint8_t pinsel_scl
PINSEL# of the SCL pin
@ ADC_RES_14BIT
ADC resolution: 14 bit.
adc_res_t
Possible ADC resolution settings.
uint32_t pinsel_msk
PINSEL Mask for ADC pin.
uint32_t pinsel_msk_tx
TX PINSEL Mask
uint8_t pinsel_clk
PINSEL# of the CLK pin
uint8_t pinsel_mosi
PINSEL# of the MOSI pin
@ ADC_RES_16BIT
ADC resolution: 16 bit.
uint32_t pinsel_msk_sda
SDA PINSEL Mask
i2c_speed_t
Default mapping of I2C bus speed values.
uint8_t pinsel_tx
PINSEL# of the TX pin
__IO uint32_t SET
Output pins are set to high by setting the corresponding bit.
@ ADC_RES_8BIT
ADC resolution: 8 bit.
@ GPIO_FALLING
emit interrupt on falling flank
#define __IO
LPC2387 MCU defines.
@ GPIO_RISING
emit interrupt on rising flank
__IO uint32_t DIR
Direction: Output if corresponding bit is set, otherwise input.
@ SPI_CLK_10MHZ
drive the SPI bus with 10MHz
uint32_t spi_clk_t
SPI clock type.
void gpio_init_mux(gpio_t pin, uint8_t over, uint8_t sel, uint8_t func)
Configure an alternate function for the given pin.
UART device configuration.
@ SPI_CLK_5MHZ
drive the SPI bus with 5MHz
uint8_t irq_prio_rx
priority of the RX IRQ
uint32_t pinsel_msk_miso
MISO PINSEL Mask
uint8_t irq_prio
priority of the I2C IRQ
@ GPIO_BOTH
emit interrupt on both flanks
uint8_t pinsel_sda
PINSEL# of the SDA pin
gpio_t adc_conf_t
ADC configuration wrapper.
lpc23xx_uart_t * dev
pointer to the UART device
@ ADC_RES_10BIT
ADC resolution: 10 bit.
@ ADC_RES_12BIT
ADC resolution: 12 bit.
uint32_t pinsel_msk_scl
SCL PINSEL Mask
__IO uint32_t MASK
Set bits to ignore corresponding bits when accessing PIN, SET or CLR register of this port.
__IO uint32_t PIN
The current state of each pin of this port is accessible here (regardless of direction): If bit is se...
uint32_t pinsel_msk_clk
CLK PINSEL Mask
uint32_t pinsel_msk_rx
RX PINSEL Mask
I2C configuration options.
@ SPI_CLK_1MHZ
drive the SPI bus with 1MHz
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
lpc23xx_i2c_t * dev
pointer to the I2C device
Fast GPIO register definition struct.
SPI configuration structure type.
__IO uint32_t CLR
Output pins are set to low by setting the corresponding bit.
uint8_t pinsel_miso
PINSEL# of the MISO pin