]> git.donarmstrong.com Git - qmk_firmware.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X/PeripheralNames.h
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[qmk_firmware.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_NXP / TARGET_LPC11U6X / PeripheralNames.h
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)LPC_USART0_BASE,
27     UART_1 = (int)LPC_USART1_BASE,
28     UART_2 = (int)LPC_USART2_BASE,
29     UART_3 = (int)LPC_USART3_BASE,
30     UART_4 = (int)LPC_USART4_BASE,
31 } UARTName;
32         
33 typedef enum {
34     ADC_0 = 0,
35     ADC_1,
36     ADC_2,
37     ADC_3,
38     ADC_4,
39     ADC_5,
40     ADC_6,
41     ADC_7,
42     ADC_8,
43     ADC_9,
44     ADC_10,
45     ADC_11,
46 } ADCName;
47
48 typedef enum {
49     SPI_0 = (int)LPC_SSP0_BASE,
50     SPI_1 = (int)LPC_SSP1_BASE
51 } SPIName;
52
53 typedef enum {
54     I2C_0 = (int)LPC_I2C0_BASE,
55     I2C_1 = (int)LPC_I2C1_BASE
56 } I2CName;
57
58 typedef enum {
59     SCT0_0 = 0,
60     SCT0_1,
61     SCT0_2,
62     SCT0_3,
63     SCT1_0,
64     SCT1_1,
65     SCT1_2,
66     SCT1_3,
67 } PWMName;
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif