1 /* mbed Microcontroller Library
2  * Copyright (c) 2006-2013 ARM Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef MBED_PERIPHERALNAMES_H
17 #define MBED_PERIPHERALNAMES_H
18 
19 #include "cmsis.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef enum {
26 	UART_0 = (int)UART0_DEV,
27 	UART_1 = (int)UART1_DEV,
28 	UART_2 = (int)UART2_DEV,
29 	UART_3 = (int)UART3_DEV,
30 } UARTName;
31 
32 typedef enum {
33 	ADC0_0 = 0,
34 	ADC0_1,
35 	ADC0_2,
36 	ADC0_3
37 } ADCName;
38 
39 typedef enum {
40 	SPI_0 = (int)SPI0_DEV,
41 	SPI_1 = (int)SPI1_DEV,
42 } SPIName;
43 
44 typedef enum {
45 	I2C_0 = (int)I2C0_DEV,
46 } I2CName;
47 
48 typedef enum {
49 	PWM_0 = 1,
50 	PWM_1,
51 	PWM_2,
52 	PWM_3,
53 	PWM_4,
54 	PWM_5
55 } PWMName;
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif
62