meh

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Aug 15 15:28:31 2014 +0100
Revision:
88:9327015d4013
Parent:
TARGET_HRM1017/TARGET_NORDIC/TARGET_NRF51822/TARGET_HRM1017/PinNames.h@87:6213f644d804
Release 88 of the mbed library

Main changes:

- changed "error.h" to "mbed_error.h" to avoid conflicts with 3rd party code
- LPC1549 SPI driver fixes
- K64F Ethernet TX buffer reclaim mechanism fix
- STDIO initialization fix
- NUCLEO_F334R8 I2C clock fix
- various other fixes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 87:6213f644d804 1 /* mbed Microcontroller Library
bogdanm 87:6213f644d804 2 * Copyright (c) 2013 Nordic Semiconductor
bogdanm 87:6213f644d804 3 *
bogdanm 87:6213f644d804 4 * Licensed under the Apache License, Version 2.0 (the "License");
bogdanm 87:6213f644d804 5 * you may not use this file except in compliance with the License.
bogdanm 87:6213f644d804 6 * You may obtain a copy of the License at
bogdanm 87:6213f644d804 7 *
bogdanm 87:6213f644d804 8 * http://www.apache.org/licenses/LICENSE-2.0
bogdanm 87:6213f644d804 9 *
bogdanm 87:6213f644d804 10 * Unless required by applicable law or agreed to in writing, software
bogdanm 87:6213f644d804 11 * distributed under the License is distributed on an "AS IS" BASIS,
bogdanm 87:6213f644d804 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
bogdanm 87:6213f644d804 13 * See the License for the specific language governing permissions and
bogdanm 87:6213f644d804 14 * limitations under the License.
bogdanm 87:6213f644d804 15 */
bogdanm 87:6213f644d804 16 #ifndef MBED_PINNAMES_H
bogdanm 87:6213f644d804 17 #define MBED_PINNAMES_H
bogdanm 87:6213f644d804 18
bogdanm 87:6213f644d804 19 #include "cmsis.h"
bogdanm 87:6213f644d804 20
bogdanm 87:6213f644d804 21 #ifdef __cplusplus
bogdanm 87:6213f644d804 22 extern "C" {
bogdanm 87:6213f644d804 23 #endif
bogdanm 87:6213f644d804 24
bogdanm 87:6213f644d804 25 typedef enum {
bogdanm 87:6213f644d804 26 PIN_INPUT,
bogdanm 87:6213f644d804 27 PIN_OUTPUT
bogdanm 87:6213f644d804 28 } PinDirection;
bogdanm 87:6213f644d804 29
bogdanm 87:6213f644d804 30 #define PORT_SHIFT 3
bogdanm 87:6213f644d804 31
bogdanm 87:6213f644d804 32 typedef enum {
bogdanm 87:6213f644d804 33 p0 = 0,
bogdanm 87:6213f644d804 34 p1 = 1,
bogdanm 87:6213f644d804 35 p2 = 2,
bogdanm 87:6213f644d804 36 p3 = 3,
bogdanm 87:6213f644d804 37 p4 = 4,
bogdanm 87:6213f644d804 38 p5 = 5,
bogdanm 87:6213f644d804 39 p6 = 6,
bogdanm 87:6213f644d804 40 p7 = 7,
bogdanm 87:6213f644d804 41 p8 = 8,
bogdanm 87:6213f644d804 42 p9 = 9,
bogdanm 87:6213f644d804 43 p10 = 10,
bogdanm 87:6213f644d804 44 p11 = 11,
bogdanm 87:6213f644d804 45 p12 = 12,
bogdanm 87:6213f644d804 46 p13 = 13,
bogdanm 87:6213f644d804 47 p14 = 14,
bogdanm 87:6213f644d804 48 p15 = 15,
bogdanm 87:6213f644d804 49 p16 = 16,
bogdanm 87:6213f644d804 50 p17 = 17,
bogdanm 87:6213f644d804 51 p18 = 18,
bogdanm 87:6213f644d804 52 p19 = 19,
bogdanm 87:6213f644d804 53 p20 = 20,
bogdanm 87:6213f644d804 54 p21 = 21,
bogdanm 87:6213f644d804 55 p22 = 22,
bogdanm 87:6213f644d804 56 p23 = 23,
bogdanm 87:6213f644d804 57 p24 = 24,
bogdanm 87:6213f644d804 58 p25 = 25,
bogdanm 87:6213f644d804 59 p26 = 26,
bogdanm 87:6213f644d804 60 p27 = 27,
bogdanm 87:6213f644d804 61 p28 = 28,
bogdanm 87:6213f644d804 62 p29 = 29,
bogdanm 87:6213f644d804 63 p30 = 30,
bogdanm 87:6213f644d804 64 // p31=31,
bogdanm 87:6213f644d804 65
bogdanm 87:6213f644d804 66 P0_0 = p0,
bogdanm 87:6213f644d804 67 P0_1 = p1,
bogdanm 87:6213f644d804 68 P0_2 = p2,
bogdanm 87:6213f644d804 69 P0_3 = p3,
bogdanm 87:6213f644d804 70 P0_4 = p4,
bogdanm 87:6213f644d804 71 P0_5 = p5,
bogdanm 87:6213f644d804 72 P0_6 = p6,
bogdanm 87:6213f644d804 73 P0_7 = p7,
bogdanm 87:6213f644d804 74
bogdanm 87:6213f644d804 75 P0_8 = p8,
bogdanm 87:6213f644d804 76 P0_9 = p9,
bogdanm 87:6213f644d804 77 P0_10 = p10,
bogdanm 87:6213f644d804 78 P0_11 = p11,
bogdanm 87:6213f644d804 79 P0_12 = p12,
bogdanm 87:6213f644d804 80 P0_13 = p13,
bogdanm 87:6213f644d804 81 P0_14 = p14,
bogdanm 87:6213f644d804 82 P0_15 = p15,
bogdanm 87:6213f644d804 83
bogdanm 87:6213f644d804 84 P0_16 = p16,
bogdanm 87:6213f644d804 85 P0_17 = p17,
bogdanm 87:6213f644d804 86 P0_18 = p18,
bogdanm 87:6213f644d804 87 P0_19 = p19,
bogdanm 87:6213f644d804 88 P0_20 = p20,
bogdanm 87:6213f644d804 89 P0_21 = p21,
bogdanm 87:6213f644d804 90 P0_22 = p22,
bogdanm 87:6213f644d804 91 P0_23 = p23,
bogdanm 87:6213f644d804 92
bogdanm 87:6213f644d804 93 P0_24 = p24,
bogdanm 87:6213f644d804 94 P0_25 = p25,
bogdanm 87:6213f644d804 95 P0_26 = p26,
bogdanm 87:6213f644d804 96 P0_27 = p27,
bogdanm 87:6213f644d804 97 P0_28 = p28,
bogdanm 87:6213f644d804 98 P0_29 = p29,
bogdanm 87:6213f644d804 99 P0_30 = p30,
bogdanm 87:6213f644d804 100
bogdanm 87:6213f644d804 101 LED1 = p18,
bogdanm 87:6213f644d804 102 LED2 = p19,
bogdanm 87:6213f644d804 103 LED3 = p18,
bogdanm 87:6213f644d804 104 LED4 = p19,
bogdanm 87:6213f644d804 105
bogdanm 87:6213f644d804 106 BUTTON1 = p16,
bogdanm 87:6213f644d804 107 BUTTON2 = p17,
bogdanm 87:6213f644d804 108
bogdanm 87:6213f644d804 109 RX_PIN_NUMBER = p11,
bogdanm 87:6213f644d804 110 TX_PIN_NUMBER = p9,
bogdanm 87:6213f644d804 111 CTS_PIN_NUMBER = p10,
bogdanm 87:6213f644d804 112 RTS_PIN_NUMBER = p8,
bogdanm 87:6213f644d804 113
bogdanm 87:6213f644d804 114 // mBed interface Pins
bogdanm 87:6213f644d804 115 USBTX = TX_PIN_NUMBER,
bogdanm 87:6213f644d804 116 USBRX = RX_PIN_NUMBER,
bogdanm 87:6213f644d804 117
bogdanm 87:6213f644d804 118 SPI_PSELMOSI0 = p20,
bogdanm 87:6213f644d804 119 SPI_PSELMISO0 = p22,
bogdanm 87:6213f644d804 120 SPI_PSELSS0 = p24,
bogdanm 87:6213f644d804 121 SPI_PSELSCK0 = p25,
bogdanm 87:6213f644d804 122
bogdanm 87:6213f644d804 123 SPI_PSELMOSI1 = p12,
bogdanm 87:6213f644d804 124 SPI_PSELMISO1 = p13,
bogdanm 87:6213f644d804 125 SPI_PSELSS1 = p14,
bogdanm 87:6213f644d804 126 SPI_PSELSCK1 = p15,
bogdanm 87:6213f644d804 127
bogdanm 87:6213f644d804 128 SPIS_PSELMOSI = p12,
bogdanm 87:6213f644d804 129 SPIS_PSELMISO = p13,
bogdanm 87:6213f644d804 130 SPIS_PSELSS = p14,
bogdanm 87:6213f644d804 131 SPIS_PSELSCK = p15,
bogdanm 87:6213f644d804 132
bogdanm 87:6213f644d804 133 I2C_SDA0 = p22,
bogdanm 87:6213f644d804 134 I2C_SCL0 = p20,
bogdanm 87:6213f644d804 135
bogdanm 87:6213f644d804 136 I2C_SDA1 = p13,
bogdanm 87:6213f644d804 137 I2C_SCL1 = p15,
bogdanm 87:6213f644d804 138 // Not connected
bogdanm 87:6213f644d804 139 NC = (int)0xFFFFFFFF
bogdanm 87:6213f644d804 140 } PinName;
bogdanm 87:6213f644d804 141
bogdanm 87:6213f644d804 142 typedef enum {
bogdanm 87:6213f644d804 143 PullNone = 0,
bogdanm 87:6213f644d804 144 PullDown = 1,
bogdanm 87:6213f644d804 145 PullUp = 3,
bogdanm 87:6213f644d804 146 PullDefault = PullUp
bogdanm 87:6213f644d804 147 } PinMode;
bogdanm 87:6213f644d804 148
bogdanm 87:6213f644d804 149 #ifdef __cplusplus
bogdanm 87:6213f644d804 150 }
bogdanm 87:6213f644d804 151 #endif
bogdanm 87:6213f644d804 152
bogdanm 87:6213f644d804 153 #endif