MCB2388 peripheral configuration.
More...
#include "periph_cpu.h"
#include "kernel_defines.h"
Go to the source code of this file.
|
#define | XTAL_HZ (12000000U) /* the board provides a 12 MHz XTAL */ |
|
#define | CLOCK_CORECLOCK (72000000U) /* the lpc2388 runs with 72MHz */ |
|
#define | CLOCK_PCLK (CLOCK_CORECLOCK) |
|
|
#define | UART_NUMOF (2) |
|
static const uart_conf_t | uart_config [] |
|
|
#define | ADC_NUMOF (1) |
|
static const adc_conf_t | adc_config [] |
|
|
#define | I2C_NUMOF (2) |
|
static const i2c_conf_t | i2c_config [] |
|
◆ adc_config
Initial value:= {
{
.chan = 0,
.pinsel = 1,
.pinsel_msk = BIT14,
},
}
Definition at line 105 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = I2C0,
.irq_prio = 5,
.pinsel_sda = 1,
.pinsel_scl = 1,
.pinsel_msk_sda = BIT22,
.pinsel_msk_scl = BIT24,
},
{
.dev = I2C1,
.irq_prio = 5,
.pinsel_sda = 1,
.pinsel_scl = 1,
.pinsel_msk_sda = BIT6 | BIT7,
.pinsel_msk_scl = BIT8 | BIT9,
},
}
Definition at line 119 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = SPI0,
.pinsel_mosi = 3,
.pinsel_miso = 3,
.pinsel_clk = 3,
.pinsel_msk_mosi = (BIT16 | BIT17),
.pinsel_msk_miso = (BIT14 | BIT15),
.pinsel_msk_clk = (BIT8 | BIT9),
},
{
.dev = SPI1,
.pinsel_mosi = 0,
.pinsel_miso = 0,
.pinsel_clk = 0,
.pinsel_msk_mosi = (BIT19),
.pinsel_msk_miso = (BIT17),
.pinsel_msk_clk = (BIT15),
},
}
Definition at line 77 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.irq_prio_rx = 6,
.pinsel_rx = 0,
.pinsel_tx = 0,
.pinsel_msk_rx = BIT4,
.pinsel_msk_tx = BIT6,
},
{
.irq_prio_rx = 6,
.pinsel_rx = 1,
.pinsel_tx = 0,
.pinsel_msk_rx = BIT0,
.pinsel_msk_tx = BIT30,
}
}
Definition at line 51 of file periph_conf.h.