]> git.donarmstrong.com Git - qmk_firmware.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralNames.h
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[qmk_firmware.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_NXP / TARGET_LPC11UXX / TARGET_LPC11U24_301 / 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_USART_BASE
27 } UARTName;
28
29 typedef enum {
30     I2C_0 = (int)LPC_I2C_BASE
31 } I2CName;
32
33 typedef enum {
34     ADC0_0 = 0,
35     ADC0_1,
36     ADC0_2,
37     ADC0_3,
38     ADC0_4,
39     ADC0_5,
40     ADC0_6,
41     ADC0_7
42 } ADCName;
43
44 typedef enum {
45     SPI_0 = (int)LPC_SSP0_BASE,
46     SPI_1 = (int)LPC_SSP1_BASE
47 } SPIName;
48
49 typedef enum {
50     PWM_1 = 0,
51     PWM_2,
52     PWM_3,
53     PWM_4,
54     PWM_5,
55     PWM_6,
56     PWM_7,
57     PWM_8,
58     PWM_9,
59     PWM_10,
60     PWM_11
61 } PWMName;
62
63 #define STDIO_UART_TX     USBTX
64 #define STDIO_UART_RX     USBRX
65 #define STDIO_UART        UART_0
66
67 // Default peripherals
68 #define MBED_SPI0         p5, p6, p7, p8
69 #define MBED_SPI1         p11, p12, p13, p14
70
71 #define MBED_UART0        p9, p10
72 #define MBED_UARTUSB      USBTX, USBRX
73
74 #define MBED_I2C0         p28, p27
75
76 #define MBED_ANALOGIN0    p15
77 #define MBED_ANALOGIN1    p16
78 #define MBED_ANALOGIN2    p17
79 #define MBED_ANALOGIN3    p18
80 #define MBED_ANALOGIN4    p19
81 #define MBED_ANALOGIN5    p20
82
83 #ifdef __cplusplus
84 }
85 #endif
86
87 #endif