MCB2388 peripheral configuration.
More...
#include "periph_cpu.h"
#include "kernel_defines.h"
Go to the source code of this file.
◆ ADC_NUMOF
◆ CLOCK_CORECLOCK
#define CLOCK_CORECLOCK (72000000U) /* the lpc2388 runs with 72MHz */ |
◆ CLOCK_PCLK
◆ I2C_NUMOF
◆ SPI_NUMOF
◆ TIMER_NUMOF
◆ UART_NUMOF
◆ XTAL_HZ
#define XTAL_HZ (12000000U) /* the board provides a 12 MHz XTAL */ |
◆ adc_config
Initial value:= {
{
.chan = 0,
.pinsel = 1,
},
}
#define BIT14
Bit 14 set define.
Definition at line 105 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = I2C0,
.irq_prio = 5,
.pinsel_sda = 1,
.pinsel_scl = 1,
},
{
.dev = I2C1,
.irq_prio = 5,
.pinsel_sda = 1,
.pinsel_scl = 1,
},
}
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
#define BIT8
Bit 8 set define.
#define BIT9
Bit 9 set define.
#define BIT24
Bit 24 set define.
#define BIT7
Bit 7 set define.
#define BIT6
Bit 6 set define.
#define BIT22
Bit 22 set define.
Definition at line 120 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = SPI0,
.pinsel_mosi = 3,
.pinsel_miso = 3,
.pinsel_clk = 3,
},
{
.dev = SPI1,
.pinsel_mosi = 0,
.pinsel_miso = 0,
.pinsel_clk = 0,
.pinsel_msk_mosi = (
BIT19),
.pinsel_msk_miso = (
BIT17),
.pinsel_msk_clk = (
BIT15),
},
}
#define BIT17
Bit 17 set define.
#define BIT16
Bit 16 set define.
#define BIT19
Bit 19 set define.
#define BIT15
Bit 15 set define.
Definition at line 77 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.irq_prio_rx = 6,
.pinsel_rx = 0,
.pinsel_tx = 0,
},
{
.irq_prio_rx = 6,
.pinsel_rx = 1,
.pinsel_tx = 0,
}
}
#define BIT30
Bit 30 set define.
#define BIT4
Bit 4 set define.
#define BIT0
Bit 0 set define.
#define UART0
UART0 register bank.
#define UART1
UART1 register bank.
Definition at line 51 of file periph_conf.h.