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,
    },
}
#define BIT14
Bit 14 set define.
 
 
Definition at line 101 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,
    },
}
#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.
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
 
Definition at line 116 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 73 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 47 of file periph_conf.h.