mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
<>
Date:
Fri Oct 28 11:17:30 2016 +0100
Revision:
149:156823d33999
Parent:
targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PinNames.h@144:ef7eb2e8f9f7
This updates the lib to the mbed lib v128

NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.

Who changed what in which revision?

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