36 #define PM_NUM_MODES        (4) 
   46     uint32_t _reserved[3];
 
   64 #define FIO_PORTS   ((FIO_PORT_t*)FIO_BASE_ADDR) 
   69 #define PINSEL      ((__IO uint32_t *)(PINSEL_BASE_ADDR)) 
   74 #define PINMODE     ((__IO uint32_t *)(PINSEL_BASE_ADDR + 0x40)) 
   87 #define GPIO_PIN(port, pin) (port<<5 | pin) 
   90 #define HAVE_GPIO_FLANK_T 
  126 #define TIMER_CHANNEL_NUMOF (4U) 
  131 #define PERIPH_TIMER_PROVIDES_SET 
  137 #define PERIPH_SPI_NEEDS_INIT_CS 
  138 #define PERIPH_SPI_NEEDS_TRANSFER_BYTE 
  139 #define PERIPH_SPI_NEEDS_TRANSFER_REG 
  140 #define PERIPH_SPI_NEEDS_TRANSFER_REGS 
  148 #define HAVE_SPI_CLK_T 
  169 #define DAC_NUMOF           (1U) 
  176 #define HAVE_ADC_RES_T 
  182     ADC_RES_9BIT  = 0b001,  
 
  184     ADC_RES_7BIT  = 0b011,  
 
  186     ADC_RES_5BIT  = 0b101,  
 
  187     ADC_RES_4BIT  = 0b110,  
 
  188     ADC_RES_3BIT  = 0b111,  
 
  207 #define HAVE_I2C_SPEED_T 
  233 #define PERIPH_I2C_NEED_READ_REG 
  234 #define PERIPH_I2C_NEED_WRITE_REG 
  242 #if defined(MODULE_PERIPH_RTC) && !defined(RTC_NORMALIZE_COMPAT) 
  243 #define RTC_NORMALIZE_COMPAT    (1) 
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.
 
@ GPIO_FALLING
emit interrupt on falling flank
 
@ GPIO_RISING
emit interrupt on rising flank
 
@ GPIO_BOTH
emit interrupt on both flanks
 
@ 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
 
#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