boards/msba2/include/periph_conf.h File Reference

MSB-A2 peripheral configuration. More...

Detailed Description

MSB-A2 peripheral configuration.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file boards/msba2/include/periph_conf.h.

#include "lpc2387.h"
+ Include dependency graph for boards/msba2/include/periph_conf.h:

Go to the source code of this file.

Macros

Clock configuration
#define CLOCK_CORECLOCK   (72000000U) /* the msba2 runs with 72MHz */
 
#define CLOCK_PCLK   (CLOCK_CORECLOCK)
 
Timer configuration, select a number from 1 to 4
#define TIMER_NUMOF   (1U)
 
PWM device and pinout configuration

Currently, we only support a single device and 3 channels, the implementation is fixed on PWM1.

#define PWM_NUMOF   (1U)
 
#define PWM_CHANNELS   (3)
 
#define PWM_CH0   (3)
 
#define PWM_CH0_MR   PWM1MR3
 
#define PWM_CH1   (4)
 
#define PWM_CH1_MR   PWM1MR4
 
#define PWM_CH2   (5)
 
#define PWM_CH2_MR   PWM1MR5
 
#define PWM_PORT   PINSEL4
 
#define PWM_CH0_PIN   (2)
 
#define PWM_CH1_PIN   (3)
 
#define PWM_CH2_PIN   (4)
 
#define PWM_FUNC   (1)
 
Real Time Clock configuration
#define RTC_NUMOF   (1)
 
UART configuration
#define UART_NUMOF   (1)
 
#define UART_0_EN   (1)
 
SPI configuration

The SPI implementation is very much fixed, so we don't need to configure anything besides the mandatory SPI_NUMOF.

#define SPI_NUMOF   (1)