/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Jul 25 09:46:51 2014 +0100
Revision:
87:6213f644d804
Release 87 of the mbed library

Main changes:

- error.h renamed to mbed_error.h to avoid name clashes
- upgraded to V7 of the nRF51822 soft-device 110
- New targets: HRM107
- Improved test infrastructure
- Bug fixes on various targets

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 = p30,
bogdanm 87:6213f644d804 102 LED2 = p14,
bogdanm 87:6213f644d804 103 LED3 = p15,
bogdanm 87:6213f644d804 104 LED4 = p16,
bogdanm 87:6213f644d804 105
bogdanm 87:6213f644d804 106 RX_PIN_NUMBER = p7,
bogdanm 87:6213f644d804 107 TX_PIN_NUMBER = p8,
bogdanm 87:6213f644d804 108 CTS_PIN_NUMBER = p26,
bogdanm 87:6213f644d804 109 RTS_PIN_NUMBER = p27,
bogdanm 87:6213f644d804 110
bogdanm 87:6213f644d804 111 // mBed interface Pins
bogdanm 87:6213f644d804 112 USBTX = TX_PIN_NUMBER,
bogdanm 87:6213f644d804 113 USBRX = RX_PIN_NUMBER,
bogdanm 87:6213f644d804 114
bogdanm 87:6213f644d804 115 SPI_PSELMOSI0 = p25,
bogdanm 87:6213f644d804 116 SPI_PSELMISO0 = p28,
bogdanm 87:6213f644d804 117 SPI_PSELSS0 = p24,
bogdanm 87:6213f644d804 118 SPI_PSELSCK0 = p29,
bogdanm 87:6213f644d804 119
bogdanm 87:6213f644d804 120 SPI_PSELMOSI1 = p12,
bogdanm 87:6213f644d804 121 SPI_PSELMISO1 = p13,
bogdanm 87:6213f644d804 122 SPI_PSELSS1 = p14,
bogdanm 87:6213f644d804 123 SPI_PSELSCK1 = p15,
bogdanm 87:6213f644d804 124
bogdanm 87:6213f644d804 125 SPIS_PSELMOSI = p12,
bogdanm 87:6213f644d804 126 SPIS_PSELMISO = p13,
bogdanm 87:6213f644d804 127 SPIS_PSELSS = p14,
bogdanm 87:6213f644d804 128 SPIS_PSELSCK = p15,
bogdanm 87:6213f644d804 129
bogdanm 87:6213f644d804 130 I2C_SDA0 = p5,
bogdanm 87:6213f644d804 131 I2C_SCL0 = p6,
bogdanm 87:6213f644d804 132
bogdanm 87:6213f644d804 133 I2C_SDA1 = p13,
bogdanm 87:6213f644d804 134 I2C_SCL1 = p15,
bogdanm 87:6213f644d804 135
bogdanm 87:6213f644d804 136 D0 = p7,
bogdanm 87:6213f644d804 137 D1 = p8,
bogdanm 87:6213f644d804 138 D2 = p9,
bogdanm 87:6213f644d804 139 D3 = p10,
bogdanm 87:6213f644d804 140 D4 = p11,
bogdanm 87:6213f644d804 141 D5 = p12,
bogdanm 87:6213f644d804 142 D6 = p13,
bogdanm 87:6213f644d804 143 D7 = p17,
bogdanm 87:6213f644d804 144
bogdanm 87:6213f644d804 145 D8 = p18,
bogdanm 87:6213f644d804 146 D9 = p23,
bogdanm 87:6213f644d804 147 D10 = p24,
bogdanm 87:6213f644d804 148 D11 = p25,
bogdanm 87:6213f644d804 149 D12 = p28,
bogdanm 87:6213f644d804 150 D13 = p29,
bogdanm 87:6213f644d804 151
bogdanm 87:6213f644d804 152 D14 = p5,
bogdanm 87:6213f644d804 153 D15 = p6,
bogdanm 87:6213f644d804 154
bogdanm 87:6213f644d804 155 A0 = p1,
bogdanm 87:6213f644d804 156 A1 = p2,
bogdanm 87:6213f644d804 157 A2 = p3,
bogdanm 87:6213f644d804 158 A3 = p4,
bogdanm 87:6213f644d804 159 A4 = p5,
bogdanm 87:6213f644d804 160 A5 = p6,
bogdanm 87:6213f644d804 161
bogdanm 87:6213f644d804 162 // Not connected
bogdanm 87:6213f644d804 163 NC = (int)0xFFFFFFFF
bogdanm 87:6213f644d804 164 } PinName;
bogdanm 87:6213f644d804 165
bogdanm 87:6213f644d804 166 typedef enum {
bogdanm 87:6213f644d804 167 PullNone = 0,
bogdanm 87:6213f644d804 168 PullDown = 1,
bogdanm 87:6213f644d804 169 PullUp = 3,
bogdanm 87:6213f644d804 170 PullDefault = PullUp
bogdanm 87:6213f644d804 171 } PinMode;
bogdanm 87:6213f644d804 172
bogdanm 87:6213f644d804 173 #ifdef __cplusplus
bogdanm 87:6213f644d804 174 }
bogdanm 87:6213f644d804 175 #endif
bogdanm 87:6213f644d804 176
bogdanm 87:6213f644d804 177 #endif