The friendly Operating System for the Internet of Things
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 
52 #define PWM_NUMOF (1U)
53 
54 /* PWM_0 device configuration */
55 #define PWM_CHANNELS (3)
56 #define PWM_CH0 (3)
57 #define PWM_CH0_MR PWM1MR3
58 #define PWM_CH1 (4)
59 #define PWM_CH1_MR PWM1MR4
60 #define PWM_CH2 (5)
61 #define PWM_CH2_MR PWM1MR5
62 /* PWM_0 pin configuration */
63 #define PWM_PORT PINSEL4
64 #define PWM_CH0_PIN (2)
65 #define PWM_CH1_PIN (3)
66 #define PWM_CH2_PIN (4)
67 #define PWM_FUNC (1)
68 
73 #define RTC_NUMOF (1)
74 
79 #define UART_NUMOF (1)
80 #define UART_0_EN (1)
81 
90 #define SPI_NUMOF (1)
91 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* PERIPH_CONF_H */
98