39#define PM_NUM_MODES (4)
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
236#define PERIPH_I2C_NEED_READ_REG
237#define PERIPH_I2C_NEED_WRITE_REG
245#if defined(MODULE_PERIPH_RTC) && !defined(RTC_NORMALIZE_COMPAT)
246#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.
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.
uint32_t _reserved[3]
12 bytes of reserved memory we don't need to access
__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.
ADC device configuration.
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.
i2c_speed_t speed
Configured bus speed, actual speed may be lower but never higher.
uint8_t pinsel_sda
PINSEL# of the SDA pin.
TWI_t * dev
Pointer to hardware module registers.
uint8_t pinsel_scl
PINSEL# of the SCL pin.
uint8_t irq_prio
priority of the I2C IRQ
uint32_t pinsel_msk_sda
SDA PINSEL Mask.
SPI device configuration.
SPI_t * dev
pointer to the used 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.
USART_t * dev
pointer to the used UART device
uint8_t pinsel_rx
PINSEL# of the RX pin.
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.