boards/msba2/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
19 #ifndef PERIPH_CONF_H
20 #define PERIPH_CONF_H
21 
22 #include "lpc2387.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define CLOCK_CORECLOCK (72000000U) /* the msba2 runs with 72MHz */
33 
34 #define CLOCK_PCLK (CLOCK_CORECLOCK)
35 
41 #define TIMER_NUMOF (1U)
42 
51 #define PWM_NUMOF (1U)
52 
53 /* PWM_0 device configuration */
54 #define PWM_CHANNELS (3)
55 #define PWM_CH0 (3)
56 #define PWM_CH0_MR PWM1MR3
57 #define PWM_CH1 (4)
58 #define PWM_CH1_MR PWM1MR4
59 #define PWM_CH2 (5)
60 #define PWM_CH2_MR PWM1MR5
61 /* PWM_0 pin configuration */
62 #define PWM_PORT PINSEL4
63 #define PWM_CH0_PIN (2)
64 #define PWM_CH1_PIN (3)
65 #define PWM_CH2_PIN (4)
66 #define PWM_FUNC (1)
67 
73 #define RTC_NUMOF (1)
74 
80 #define UART_NUMOF (1)
81 #define UART_0_EN (1)
82 
91 #define SPI_NUMOF (1)
92 
94 #ifdef __cplusplus
95 }
96 #endif
97 
98 #endif /* PERIPH_CONF_H */
99