Loading...
Searching...
No Matches
periph_conf.h File Reference

MCB2388 peripheral configuration. More...

Detailed Description

MCB2388 peripheral configuration.

Author
Benjamin Valentin benpi.nosp@m.cco@.nosp@m.beuth.nosp@m.-hoc.nosp@m.hschu.nosp@m.le.d.nosp@m.e

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "kernel_defines.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

Clock configuration

#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)
 

Timer configuration, select a number from 1 to 4

#define TIMER_NUMOF   (4U)
 

UART configuration

#define UART_NUMOF   (2)
 
static const uart_conf_t uart_config []
 

SPI configuration

#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

ADC configuration

#define ADC_NUMOF   (1)
 
static const adc_conf_t adc_config []
 

I2C configuration

#define I2C_NUMOF   (2)
 
static const i2c_conf_t i2c_config []
 

Macro Definition Documentation

◆ ADC_NUMOF

#define ADC_NUMOF   (1)

Definition at line 113 of file periph_conf.h.

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   (72000000U) /* the lpc2388 runs with 72MHz */

Definition at line 35 of file periph_conf.h.

◆ CLOCK_PCLK

#define CLOCK_PCLK   (CLOCK_CORECLOCK)

Definition at line 37 of file periph_conf.h.

◆ I2C_NUMOF

#define I2C_NUMOF   (2)

Definition at line 141 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 98 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   (4U)

Definition at line 44 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   (2)

Definition at line 70 of file periph_conf.h.

◆ XTAL_HZ

#define XTAL_HZ   (12000000U) /* the board provides a 12 MHz XTAL */

Definition at line 33 of file periph_conf.h.

Variable Documentation

◆ adc_config

const adc_conf_t adc_config[]
static
Initial value:
= {
{
.chan = 0,
.pinsel = 1,
.pinsel_msk = BIT14,
},
}
#define BIT14
Bit 14 set define.
Definition bitarithm.h:75

Definition at line 105 of file periph_conf.h.

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.dev = I2C0,
.speed = I2C_SPEED_NORMAL,
.irq_prio = 5,
.pinsel_sda = 1,
.pinsel_scl = 1,
.pinsel_msk_sda = BIT22,
.pinsel_msk_scl = BIT24,
},
{
.dev = I2C1,
.speed = I2C_SPEED_NORMAL,
.irq_prio = 5,
.pinsel_sda = 1,
.pinsel_scl = 1,
.pinsel_msk_sda = BIT6 | BIT7,
.pinsel_msk_scl = BIT8 | BIT9,
},
}
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
Definition periph_cpu.h:278
#define BIT8
Bit 8 set define.
Definition bitarithm.h:67
#define BIT9
Bit 9 set define.
Definition bitarithm.h:68
#define BIT24
Bit 24 set define.
Definition bitarithm.h:87
#define BIT7
Bit 7 set define.
Definition bitarithm.h:66
#define BIT6
Bit 6 set define.
Definition bitarithm.h:65
#define BIT22
Bit 22 set define.
Definition bitarithm.h:85

Definition at line 120 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
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),
},
}
#define BIT17
Bit 17 set define.
Definition bitarithm.h:80
#define BIT16
Bit 16 set define.
Definition bitarithm.h:79
#define BIT19
Bit 19 set define.
Definition bitarithm.h:82
#define BIT15
Bit 15 set define.
Definition bitarithm.h:76

Definition at line 77 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = UART0,
.irq_prio_rx = 6,
.pinsel_rx = 0,
.pinsel_tx = 0,
.pinsel_msk_rx = BIT4,
.pinsel_msk_tx = BIT6,
},
{
.dev = UART1,
.irq_prio_rx = 6,
.pinsel_rx = 1,
.pinsel_tx = 0,
.pinsel_msk_rx = BIT0,
.pinsel_msk_tx = BIT30,
}
}
#define BIT30
Bit 30 set define.
Definition bitarithm.h:93
#define BIT4
Bit 4 set define.
Definition bitarithm.h:63
#define BIT0
Bit 0 set define.
Definition bitarithm.h:59
#define UART0
UART0 register bank.
#define UART1
UART1 register bank.

Definition at line 51 of file periph_conf.h.