mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Tue Jul 14 09:45:08 2015 +0100
Revision:
590:0e93a0f70f9d
Synchronized with git revision a4c1bdc788e19fb9ae196b89074088f477ba91e4

Full URL: https://github.com/mbedmicro/mbed/commit/a4c1bdc788e19fb9ae196b89074088f477ba91e4/

add IBDAP-LPC11U35 platform

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 590:0e93a0f70f9d 1 /* mbed Microcontroller Library
mbed_official 590:0e93a0f70f9d 2 * Copyright (c) 2006-2014 ARM Limited
mbed_official 590:0e93a0f70f9d 3 *
mbed_official 590:0e93a0f70f9d 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 590:0e93a0f70f9d 5 * you may not use this file except in compliance with the License.
mbed_official 590:0e93a0f70f9d 6 * You may obtain a copy of the License at
mbed_official 590:0e93a0f70f9d 7 *
mbed_official 590:0e93a0f70f9d 8 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 590:0e93a0f70f9d 9 *
mbed_official 590:0e93a0f70f9d 10 * Unless required by applicable law or agreed to in writing, software
mbed_official 590:0e93a0f70f9d 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 590:0e93a0f70f9d 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 590:0e93a0f70f9d 13 * See the License for the specific language governing permissions and
mbed_official 590:0e93a0f70f9d 14 * limitations under the License.
mbed_official 590:0e93a0f70f9d 15 */
mbed_official 590:0e93a0f70f9d 16 #ifndef MBED_PINNAMES_H
mbed_official 590:0e93a0f70f9d 17 #define MBED_PINNAMES_H
mbed_official 590:0e93a0f70f9d 18
mbed_official 590:0e93a0f70f9d 19 #include "cmsis.h"
mbed_official 590:0e93a0f70f9d 20
mbed_official 590:0e93a0f70f9d 21 #ifdef __cplusplus
mbed_official 590:0e93a0f70f9d 22 extern "C" {
mbed_official 590:0e93a0f70f9d 23 #endif
mbed_official 590:0e93a0f70f9d 24
mbed_official 590:0e93a0f70f9d 25 typedef enum {
mbed_official 590:0e93a0f70f9d 26 PIN_INPUT,
mbed_official 590:0e93a0f70f9d 27 PIN_OUTPUT
mbed_official 590:0e93a0f70f9d 28 } PinDirection;
mbed_official 590:0e93a0f70f9d 29
mbed_official 590:0e93a0f70f9d 30 #define PORT_SHIFT 5
mbed_official 590:0e93a0f70f9d 31
mbed_official 590:0e93a0f70f9d 32 typedef enum {
mbed_official 590:0e93a0f70f9d 33 // LPC11U Pin Names
mbed_official 590:0e93a0f70f9d 34 P0_0 = 0,
mbed_official 590:0e93a0f70f9d 35 P0_1 = 1,
mbed_official 590:0e93a0f70f9d 36 P0_2 = 2,
mbed_official 590:0e93a0f70f9d 37 P0_3 = 3,
mbed_official 590:0e93a0f70f9d 38 P0_4 = 4,
mbed_official 590:0e93a0f70f9d 39 P0_5 = 5,
mbed_official 590:0e93a0f70f9d 40 P0_6 = 6,
mbed_official 590:0e93a0f70f9d 41 P0_7 = 7,
mbed_official 590:0e93a0f70f9d 42 P0_8 = 8,
mbed_official 590:0e93a0f70f9d 43 P0_9 = 9,
mbed_official 590:0e93a0f70f9d 44 P0_10 = 10,
mbed_official 590:0e93a0f70f9d 45 P0_11 = 11,
mbed_official 590:0e93a0f70f9d 46 P0_12 = 12,
mbed_official 590:0e93a0f70f9d 47 P0_13 = 13,
mbed_official 590:0e93a0f70f9d 48 P0_14 = 14,
mbed_official 590:0e93a0f70f9d 49 P0_15 = 15,
mbed_official 590:0e93a0f70f9d 50 P0_16 = 16,
mbed_official 590:0e93a0f70f9d 51 P0_17 = 17,
mbed_official 590:0e93a0f70f9d 52 P0_18 = 18,
mbed_official 590:0e93a0f70f9d 53 P0_19 = 19,
mbed_official 590:0e93a0f70f9d 54 P0_20 = 20,
mbed_official 590:0e93a0f70f9d 55 P0_21 = 21,
mbed_official 590:0e93a0f70f9d 56 P0_22 = 22,
mbed_official 590:0e93a0f70f9d 57 P0_23 = 23,
mbed_official 590:0e93a0f70f9d 58 P0_24 = 24,
mbed_official 590:0e93a0f70f9d 59 P0_25 = 25,
mbed_official 590:0e93a0f70f9d 60 P0_26 = 26,
mbed_official 590:0e93a0f70f9d 61 P0_27 = 27,
mbed_official 590:0e93a0f70f9d 62
mbed_official 590:0e93a0f70f9d 63 P1_0 = 32,
mbed_official 590:0e93a0f70f9d 64 P1_1 = 33,
mbed_official 590:0e93a0f70f9d 65 P1_2 = 34,
mbed_official 590:0e93a0f70f9d 66 P1_3 = 35,
mbed_official 590:0e93a0f70f9d 67 P1_4 = 36,
mbed_official 590:0e93a0f70f9d 68 P1_5 = 37,
mbed_official 590:0e93a0f70f9d 69 P1_6 = 38,
mbed_official 590:0e93a0f70f9d 70 P1_7 = 39,
mbed_official 590:0e93a0f70f9d 71 P1_8 = 40,
mbed_official 590:0e93a0f70f9d 72 P1_9 = 41,
mbed_official 590:0e93a0f70f9d 73 P1_10 = 42,
mbed_official 590:0e93a0f70f9d 74 P1_11 = 43,
mbed_official 590:0e93a0f70f9d 75 P1_12 = 44,
mbed_official 590:0e93a0f70f9d 76 P1_13 = 45,
mbed_official 590:0e93a0f70f9d 77 P1_14 = 46,
mbed_official 590:0e93a0f70f9d 78 P1_15 = 47,
mbed_official 590:0e93a0f70f9d 79 P1_16 = 48,
mbed_official 590:0e93a0f70f9d 80 P1_17 = 49,
mbed_official 590:0e93a0f70f9d 81 P1_18 = 50,
mbed_official 590:0e93a0f70f9d 82 P1_19 = 51,
mbed_official 590:0e93a0f70f9d 83 P1_20 = 52,
mbed_official 590:0e93a0f70f9d 84 P1_21 = 53,
mbed_official 590:0e93a0f70f9d 85 P1_22 = 54,
mbed_official 590:0e93a0f70f9d 86 P1_23 = 55,
mbed_official 590:0e93a0f70f9d 87 P1_24 = 56,
mbed_official 590:0e93a0f70f9d 88 P1_25 = 57,
mbed_official 590:0e93a0f70f9d 89 P1_26 = 58,
mbed_official 590:0e93a0f70f9d 90 P1_27 = 59,
mbed_official 590:0e93a0f70f9d 91 P1_28 = 60,
mbed_official 590:0e93a0f70f9d 92 P1_29 = 61,
mbed_official 590:0e93a0f70f9d 93
mbed_official 590:0e93a0f70f9d 94 P1_31 = 63,
mbed_official 590:0e93a0f70f9d 95
mbed_official 590:0e93a0f70f9d 96 // mbed DIP Pin Names
mbed_official 590:0e93a0f70f9d 97 // CN1-1 (GND)
mbed_official 590:0e93a0f70f9d 98 // CN1-2 (EXTPOWER)
mbed_official 590:0e93a0f70f9d 99 // CN1-3 (NC)
mbed_official 590:0e93a0f70f9d 100 p4 = P0_0, // CN1-4
mbed_official 590:0e93a0f70f9d 101 p5 = P0_9, // CN1-5
mbed_official 590:0e93a0f70f9d 102 p6 = P0_8, // CN1-6
mbed_official 590:0e93a0f70f9d 103 p7 = P0_10, // CN1-7
mbed_official 590:0e93a0f70f9d 104 p8 = P0_7, // CN1-8
mbed_official 590:0e93a0f70f9d 105 p9 = P0_19, // CN1-9
mbed_official 590:0e93a0f70f9d 106 p10 = P0_18, // CN1-10
mbed_official 590:0e93a0f70f9d 107 p11 = P0_21, // CN1-11
mbed_official 590:0e93a0f70f9d 108 p12 = P0_22, // CN1-12
mbed_official 590:0e93a0f70f9d 109 p13 = P1_15, // CN1-13
mbed_official 590:0e93a0f70f9d 110 p14 = P0_6, // CN1-14
mbed_official 590:0e93a0f70f9d 111 p15 = P0_11, // CN1-15
mbed_official 590:0e93a0f70f9d 112 p16 = P0_12, // CN1-16
mbed_official 590:0e93a0f70f9d 113 p17 = P0_13, // CN1-17
mbed_official 590:0e93a0f70f9d 114 p18 = P0_14, // CN1-18
mbed_official 590:0e93a0f70f9d 115 p19 = P0_15, // CN1-19
mbed_official 590:0e93a0f70f9d 116 p20 = P0_16, // CN1-20
mbed_official 590:0e93a0f70f9d 117
mbed_official 590:0e93a0f70f9d 118 p21 = P0_14, // CN2-20
mbed_official 590:0e93a0f70f9d 119 p22 = P0_2, // CN2-19
mbed_official 590:0e93a0f70f9d 120 p23 = P0_23, // CN2-18
mbed_official 590:0e93a0f70f9d 121 p24 = P0_17, // CN2-17
mbed_official 590:0e93a0f70f9d 122 p25 = P0_20, // CN2-16
mbed_official 590:0e93a0f70f9d 123 p26 = P1_15, // CN2-15
mbed_official 590:0e93a0f70f9d 124 p27 = P0_4, // CN2-14
mbed_official 590:0e93a0f70f9d 125 p28 = P0_5, // CN2-13
mbed_official 590:0e93a0f70f9d 126 p29 = P1_19, // CN2-12
mbed_official 590:0e93a0f70f9d 127 p30 = P0_1, // CN2-11
mbed_official 590:0e93a0f70f9d 128 // CN2-10 (D+USB)
mbed_official 590:0e93a0f70f9d 129 // CN2-9 (D-USB)
mbed_official 590:0e93a0f70f9d 130 p33 = P0_3, // CN2-8 (USB-VBUS)
mbed_official 590:0e93a0f70f9d 131 // CN2-7 (NC)
mbed_official 590:0e93a0f70f9d 132 // CN2-6 (NC)
mbed_official 590:0e93a0f70f9d 133 // CN2-5 (NC)
mbed_official 590:0e93a0f70f9d 134 // CN2-4 (NC)
mbed_official 590:0e93a0f70f9d 135 // CN2-3 (NC)
mbed_official 590:0e93a0f70f9d 136 // CN2-2 (VDD)
mbed_official 590:0e93a0f70f9d 137 // CN2-1 (VDD)
mbed_official 590:0e93a0f70f9d 138
mbed_official 590:0e93a0f70f9d 139 // Other mbed Pin Names
mbed_official 590:0e93a0f70f9d 140 LED1 = P0_20, // GREEN LED
mbed_official 590:0e93a0f70f9d 141 LED2 = P0_11, // RED LED
mbed_official 590:0e93a0f70f9d 142 LED3 = P0_21, // BLUE LED
mbed_official 590:0e93a0f70f9d 143 LED4 = P0_20, // repeat LED1
mbed_official 590:0e93a0f70f9d 144
mbed_official 590:0e93a0f70f9d 145 UART_TX = P0_19,
mbed_official 590:0e93a0f70f9d 146 UART_RX = P0_18,
mbed_official 590:0e93a0f70f9d 147
mbed_official 590:0e93a0f70f9d 148 I2C_SCL = P0_4,
mbed_official 590:0e93a0f70f9d 149 I2C_SDA = P0_5,
mbed_official 590:0e93a0f70f9d 150
mbed_official 590:0e93a0f70f9d 151 // Not connected
mbed_official 590:0e93a0f70f9d 152 NC = (int)0xFFFFFFFF,
mbed_official 590:0e93a0f70f9d 153
mbed_official 590:0e93a0f70f9d 154 // Standard but not supported pins
mbed_official 590:0e93a0f70f9d 155 USBTX = NC,
mbed_official 590:0e93a0f70f9d 156 USBRX = NC,
mbed_official 590:0e93a0f70f9d 157
mbed_official 590:0e93a0f70f9d 158 } PinName;
mbed_official 590:0e93a0f70f9d 159
mbed_official 590:0e93a0f70f9d 160 typedef enum {
mbed_official 590:0e93a0f70f9d 161 CHANNEL0 = FLEX_INT0_IRQn,
mbed_official 590:0e93a0f70f9d 162 CHANNEL1 = FLEX_INT1_IRQn,
mbed_official 590:0e93a0f70f9d 163 CHANNEL2 = FLEX_INT2_IRQn,
mbed_official 590:0e93a0f70f9d 164 CHANNEL3 = FLEX_INT3_IRQn,
mbed_official 590:0e93a0f70f9d 165 CHANNEL4 = FLEX_INT4_IRQn,
mbed_official 590:0e93a0f70f9d 166 CHANNEL5 = FLEX_INT5_IRQn,
mbed_official 590:0e93a0f70f9d 167 CHANNEL6 = FLEX_INT6_IRQn,
mbed_official 590:0e93a0f70f9d 168 CHANNEL7 = FLEX_INT7_IRQn
mbed_official 590:0e93a0f70f9d 169 } Channel;
mbed_official 590:0e93a0f70f9d 170
mbed_official 590:0e93a0f70f9d 171 typedef enum {
mbed_official 590:0e93a0f70f9d 172 PullUp = 2,
mbed_official 590:0e93a0f70f9d 173 PullDown = 1,
mbed_official 590:0e93a0f70f9d 174 PullNone = 0,
mbed_official 590:0e93a0f70f9d 175 Repeater = 3,
mbed_official 590:0e93a0f70f9d 176 OpenDrain = 4,
mbed_official 590:0e93a0f70f9d 177 PullDefault = PullDown
mbed_official 590:0e93a0f70f9d 178 } PinMode;
mbed_official 590:0e93a0f70f9d 179
mbed_official 590:0e93a0f70f9d 180 #ifdef __cplusplus
mbed_official 590:0e93a0f70f9d 181 }
mbed_official 590:0e93a0f70f9d 182 #endif
mbed_official 590:0e93a0f70f9d 183
mbed_official 590:0e93a0f70f9d 184 #endif