mbed library sources modified for open wear

Dependents:   openwear-lifelogger-example

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Mon Aug 18 09:30:06 2014 +0100
Revision:
288:9567fed63582
Parent:
targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_GHI_MBUINO/PinNames.h@274:6937b19af361
Synchronized with git revision 4dbfe1ea08d2be0ab6097f23e3805bc84efb3c5a

Full URL: https://github.com/mbedmicro/mbed/commit/4dbfe1ea08d2be0ab6097f23e3805bc84efb3c5a/

Renamed TARGET_GHI_MBUINO to TARGET_OC_MBUINO to match the new name of t...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 263:3095fd66fd32 1 /* mbed Microcontroller Library
mbed_official 263:3095fd66fd32 2 * Copyright (c) 2006-2013 ARM Limited
mbed_official 263:3095fd66fd32 3 *
mbed_official 263:3095fd66fd32 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 263:3095fd66fd32 5 * you may not use this file except in compliance with the License.
mbed_official 263:3095fd66fd32 6 * You may obtain a copy of the License at
mbed_official 263:3095fd66fd32 7 *
mbed_official 263:3095fd66fd32 8 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 263:3095fd66fd32 9 *
mbed_official 263:3095fd66fd32 10 * Unless required by applicable law or agreed to in writing, software
mbed_official 263:3095fd66fd32 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 263:3095fd66fd32 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 263:3095fd66fd32 13 * See the License for the specific language governing permissions and
mbed_official 263:3095fd66fd32 14 * limitations under the License.
mbed_official 263:3095fd66fd32 15 */
mbed_official 263:3095fd66fd32 16 #ifndef MBED_PINNAMES_H
mbed_official 263:3095fd66fd32 17 #define MBED_PINNAMES_H
mbed_official 263:3095fd66fd32 18
mbed_official 263:3095fd66fd32 19 #include "cmsis.h"
mbed_official 263:3095fd66fd32 20
mbed_official 263:3095fd66fd32 21 #ifdef __cplusplus
mbed_official 263:3095fd66fd32 22 extern "C" {
mbed_official 263:3095fd66fd32 23 #endif
mbed_official 263:3095fd66fd32 24
mbed_official 263:3095fd66fd32 25 typedef enum {
mbed_official 263:3095fd66fd32 26 PIN_INPUT,
mbed_official 263:3095fd66fd32 27 PIN_OUTPUT
mbed_official 263:3095fd66fd32 28 } PinDirection;
mbed_official 263:3095fd66fd32 29
mbed_official 263:3095fd66fd32 30 #define PORT_SHIFT 5
mbed_official 263:3095fd66fd32 31
mbed_official 263:3095fd66fd32 32 typedef enum {
mbed_official 274:6937b19af361 33 // LPC11U24 HVQFN33 Pin Names
mbed_official 263:3095fd66fd32 34 P0_0 = 0,
mbed_official 263:3095fd66fd32 35 P0_1 = 1,
mbed_official 263:3095fd66fd32 36 P0_2 = 2,
mbed_official 263:3095fd66fd32 37 P0_3 = 3,
mbed_official 263:3095fd66fd32 38 P0_4 = 4,
mbed_official 263:3095fd66fd32 39 P0_5 = 5,
mbed_official 263:3095fd66fd32 40 P0_6 = 6,
mbed_official 263:3095fd66fd32 41 P0_7 = 7,
mbed_official 263:3095fd66fd32 42 P0_8 = 8,
mbed_official 263:3095fd66fd32 43 P0_9 = 9,
mbed_official 263:3095fd66fd32 44 P0_10 = 10,
mbed_official 263:3095fd66fd32 45 P0_11 = 11,
mbed_official 263:3095fd66fd32 46 P0_12 = 12,
mbed_official 263:3095fd66fd32 47 P0_13 = 13,
mbed_official 263:3095fd66fd32 48 P0_14 = 14,
mbed_official 263:3095fd66fd32 49 P0_15 = 15,
mbed_official 263:3095fd66fd32 50 P0_16 = 16,
mbed_official 263:3095fd66fd32 51 P0_17 = 17,
mbed_official 263:3095fd66fd32 52 P0_18 = 18,
mbed_official 263:3095fd66fd32 53 P0_19 = 19,
mbed_official 263:3095fd66fd32 54 P0_20 = 20,
mbed_official 263:3095fd66fd32 55 P0_21 = 21,
mbed_official 263:3095fd66fd32 56 P0_22 = 22,
mbed_official 263:3095fd66fd32 57 P0_23 = 23,
mbed_official 263:3095fd66fd32 58
mbed_official 263:3095fd66fd32 59 P1_15 = 47,
mbed_official 263:3095fd66fd32 60 P1_19 = 51,
mbed_official 263:3095fd66fd32 61
mbed_official 263:3095fd66fd32 62 // Other mbed Pin Names
mbed_official 274:6937b19af361 63 LED1 = P0_7,
mbed_official 274:6937b19af361 64 LED2 = P0_8,
mbed_official 274:6937b19af361 65 LED3 = P0_2,
mbed_official 274:6937b19af361 66 LED4 = P0_20,
mbed_official 274:6937b19af361 67 LED5 = P1_19,
mbed_official 274:6937b19af361 68 LED6 = P0_17,
mbed_official 274:6937b19af361 69 LED7 = P0_23,
mbed_official 263:3095fd66fd32 70
mbed_official 263:3095fd66fd32 71 USBTX = P0_19,
mbed_official 263:3095fd66fd32 72 USBRX = P0_18,
mbed_official 263:3095fd66fd32 73
mbed_official 274:6937b19af361 74 I2C_SCL = P0_4,
mbed_official 274:6937b19af361 75 I2C_SDA = P0_5,
mbed_official 263:3095fd66fd32 76
mbed_official 263:3095fd66fd32 77 // Not connected
mbed_official 263:3095fd66fd32 78 NC = (int)0xFFFFFFFF,
mbed_official 263:3095fd66fd32 79 } PinName;
mbed_official 263:3095fd66fd32 80
mbed_official 263:3095fd66fd32 81 typedef enum {
mbed_official 263:3095fd66fd32 82 CHANNEL0 = FLEX_INT0_IRQn,
mbed_official 263:3095fd66fd32 83 CHANNEL1 = FLEX_INT1_IRQn,
mbed_official 263:3095fd66fd32 84 CHANNEL2 = FLEX_INT2_IRQn,
mbed_official 263:3095fd66fd32 85 CHANNEL3 = FLEX_INT3_IRQn,
mbed_official 263:3095fd66fd32 86 CHANNEL4 = FLEX_INT4_IRQn,
mbed_official 263:3095fd66fd32 87 CHANNEL5 = FLEX_INT5_IRQn,
mbed_official 263:3095fd66fd32 88 CHANNEL6 = FLEX_INT6_IRQn,
mbed_official 263:3095fd66fd32 89 CHANNEL7 = FLEX_INT7_IRQn
mbed_official 263:3095fd66fd32 90 } Channel;
mbed_official 263:3095fd66fd32 91
mbed_official 263:3095fd66fd32 92 typedef enum {
mbed_official 263:3095fd66fd32 93 PullUp = 2,
mbed_official 263:3095fd66fd32 94 PullDown = 1,
mbed_official 263:3095fd66fd32 95 PullNone = 0,
mbed_official 263:3095fd66fd32 96 Repeater = 3,
mbed_official 263:3095fd66fd32 97 OpenDrain = 4,
mbed_official 263:3095fd66fd32 98 PullDefault = PullDown
mbed_official 263:3095fd66fd32 99 } PinMode;
mbed_official 263:3095fd66fd32 100
mbed_official 263:3095fd66fd32 101 #ifdef __cplusplus
mbed_official 263:3095fd66fd32 102 }
mbed_official 263:3095fd66fd32 103 #endif
mbed_official 263:3095fd66fd32 104
mbed_official 263:3095fd66fd32 105 #endif