40#define PM_NUM_MODES (4)
50 uint32_t _reserved[3];
68#define FIO_PORTS ((FIO_PORT_t*)FIO_BASE_ADDR)
73#define PINSEL ((__IO uint32_t *)(PINSEL_BASE_ADDR))
78#define PINMODE ((__IO uint32_t *)(PINSEL_BASE_ADDR + 0x40))
91#define GPIO_PIN(port, pin) (port<<5 | pin)
94#define HAVE_GPIO_FLANK_T
130#define TIMER_CHANNEL_NUMOF (4U)
135#define PERIPH_TIMER_PROVIDES_SET
141#define PERIPH_SPI_NEEDS_INIT_CS
142#define PERIPH_SPI_NEEDS_TRANSFER_BYTE
143#define PERIPH_SPI_NEEDS_TRANSFER_REG
144#define PERIPH_SPI_NEEDS_TRANSFER_REGS
152#define HAVE_SPI_CLK_T
173#define DAC_NUMOF (1U)
180#define HAVE_ADC_RES_T
186 ADC_RES_9BIT = 0b001,
188 ADC_RES_7BIT = 0b011,
190 ADC_RES_5BIT = 0b101,
191 ADC_RES_4BIT = 0b110,
192 ADC_RES_3BIT = 0b111,
211#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)
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
@ I2C_SPEED_LOW
low speed mode: ~10 kbit/s
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
@ SPI_CLK_10MHZ
drive the SPI bus with 10MHz
@ SPI_CLK_5MHZ
drive the SPI bus with 5MHz
@ SPI_CLK_400KHZ
drive the SPI bus with 400KHz
@ SPI_CLK_1MHZ
drive the SPI bus with 1MHz
@ SPI_CLK_100KHZ
drive the SPI bus with 100KHz
void gpio_init_mux(gpio_t pin, uint8_t over, uint8_t sel, uint8_t func)
Configure an alternate function for the given pin.
gpio_t adc_conf_t
ADC configuration wrapper.
adc_res_t
Possible ADC resolution settings.
@ ADC_RES_16BIT
ADC resolution: 16 bit.
@ ADC_RES_8BIT
ADC resolution: 8 bit.
@ ADC_RES_14BIT
ADC resolution: 14 bit.
@ ADC_RES_6BIT
ADC resolution: 6 bit.
@ ADC_RES_10BIT
ADC resolution: 10 bit.
@ ADC_RES_12BIT
ADC resolution: 12 bit.
#define __IO
LPC2387 MCU defines.
Fast GPIO register definition struct.
__IO uint32_t MASK
Set bits to ignore corresponding bits when accessing PIN, SET or CLR register of this port.
__IO uint32_t SET
Output pins are set to high by setting the corresponding bit.
__IO uint32_t DIR
Direction: Output if corresponding bit is set, otherwise input.
__IO uint32_t PIN
The current state of each pin of this port is accessible here (regardless of direction): If bit is se...
__IO uint32_t CLR
Output pins are set to low by setting the corresponding bit.
uint8_t pinsel
PINSEL# of the ADC pin
uint32_t pinsel_msk
PINSEL Mask for ADC pin.
I2C configuration structure.
uint32_t pinsel_msk_scl
SCL PINSEL Mask
uint8_t pinsel_sda
PINSEL# of the SDA pin
uint8_t pinsel_scl
PINSEL# of the SCL pin
lpc23xx_i2c_t * dev
pointer to the I2C device
uint8_t irq_prio
priority of the I2C IRQ
uint32_t pinsel_msk_sda
SDA PINSEL Mask
SPI device configuration.
lpc23xx_spi_t * dev
pointer to the SPI device
uint8_t pinsel_miso
PINSEL# of the MISO pin
uint32_t pinsel_msk_clk
CLK PINSEL Mask
uint8_t pinsel_clk
PINSEL# of the CLK pin
uint8_t pinsel_mosi
PINSEL# of the MOSI pin
uint32_t pinsel_msk_mosi
MOSI PINSEL Mask
uint32_t pinsel_msk_miso
MISO PINSEL Mask
UART device configuration.
uint8_t pinsel_rx
PINSEL# of the RX pin
lpc23xx_uart_t * dev
pointer to the UART device
uint32_t pinsel_msk_tx
TX PINSEL Mask
uint8_t pinsel_tx
PINSEL# of the TX pin
uint8_t irq_prio_rx
priority of the RX IRQ
uint32_t pinsel_msk_rx
RX PINSEL Mask