mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PinNames.h@98:3b81ecf1eeec, 2014-02-18 (annotated)
- Committer:
- mbed_official
- Date:
- Tue Feb 18 22:15:05 2014 +0000
- Revision:
- 98:3b81ecf1eeec
- Parent:
- 82:0b31dbcd4769
- Child:
- 105:e200768883d5
Synchronized with git revision 111cad58e960e1341fff6cd403436799963e3703
Full URL: https://github.com/mbedmicro/mbed/commit/111cad58e960e1341fff6cd403436799963e3703/
Frdm fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 82:0b31dbcd4769 | 1 | /* mbed Microcontroller Library |
mbed_official | 82:0b31dbcd4769 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 82:0b31dbcd4769 | 3 | * |
mbed_official | 82:0b31dbcd4769 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 82:0b31dbcd4769 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 82:0b31dbcd4769 | 6 | * You may obtain a copy of the License at |
mbed_official | 82:0b31dbcd4769 | 7 | * |
mbed_official | 82:0b31dbcd4769 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 82:0b31dbcd4769 | 9 | * |
mbed_official | 82:0b31dbcd4769 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 82:0b31dbcd4769 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 82:0b31dbcd4769 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 82:0b31dbcd4769 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 82:0b31dbcd4769 | 14 | * limitations under the License. |
mbed_official | 82:0b31dbcd4769 | 15 | */ |
mbed_official | 82:0b31dbcd4769 | 16 | #ifndef MBED_PINNAMES_H |
mbed_official | 82:0b31dbcd4769 | 17 | #define MBED_PINNAMES_H |
mbed_official | 82:0b31dbcd4769 | 18 | |
mbed_official | 82:0b31dbcd4769 | 19 | #include "cmsis.h" |
mbed_official | 82:0b31dbcd4769 | 20 | |
mbed_official | 82:0b31dbcd4769 | 21 | #ifdef __cplusplus |
mbed_official | 82:0b31dbcd4769 | 22 | extern "C" { |
mbed_official | 82:0b31dbcd4769 | 23 | #endif |
mbed_official | 82:0b31dbcd4769 | 24 | |
mbed_official | 82:0b31dbcd4769 | 25 | typedef enum { |
mbed_official | 82:0b31dbcd4769 | 26 | PIN_INPUT, |
mbed_official | 82:0b31dbcd4769 | 27 | PIN_OUTPUT |
mbed_official | 82:0b31dbcd4769 | 28 | } PinDirection; |
mbed_official | 82:0b31dbcd4769 | 29 | |
mbed_official | 82:0b31dbcd4769 | 30 | /* PCR - 0x1000 */ |
mbed_official | 82:0b31dbcd4769 | 31 | #define PORT_SHIFT 12 |
mbed_official | 82:0b31dbcd4769 | 32 | |
mbed_official | 82:0b31dbcd4769 | 33 | typedef enum { |
mbed_official | 82:0b31dbcd4769 | 34 | PTA0 = 0x0, |
mbed_official | 82:0b31dbcd4769 | 35 | PTA1 = 0x4, |
mbed_official | 82:0b31dbcd4769 | 36 | PTA2 = 0x8, |
mbed_official | 82:0b31dbcd4769 | 37 | PTA3 = 0xc, |
mbed_official | 82:0b31dbcd4769 | 38 | PTA4 = 0x10, |
mbed_official | 82:0b31dbcd4769 | 39 | PTA5 = 0x14, |
mbed_official | 82:0b31dbcd4769 | 40 | PTA6 = 0x18, |
mbed_official | 82:0b31dbcd4769 | 41 | PTA7 = 0x1c, |
mbed_official | 82:0b31dbcd4769 | 42 | PTA8 = 0x20, |
mbed_official | 82:0b31dbcd4769 | 43 | PTA9 = 0x24, |
mbed_official | 82:0b31dbcd4769 | 44 | PTA10 = 0x28, |
mbed_official | 82:0b31dbcd4769 | 45 | PTA11 = 0x2c, |
mbed_official | 82:0b31dbcd4769 | 46 | PTA12 = 0x30, |
mbed_official | 82:0b31dbcd4769 | 47 | PTA13 = 0x34, |
mbed_official | 82:0b31dbcd4769 | 48 | PTA14 = 0x38, |
mbed_official | 82:0b31dbcd4769 | 49 | PTA15 = 0x3c, |
mbed_official | 82:0b31dbcd4769 | 50 | PTA16 = 0x40, |
mbed_official | 82:0b31dbcd4769 | 51 | PTA17 = 0x44, |
mbed_official | 82:0b31dbcd4769 | 52 | PTA18 = 0x48, |
mbed_official | 82:0b31dbcd4769 | 53 | PTA19 = 0x4c, |
mbed_official | 82:0b31dbcd4769 | 54 | PTB0 = 0x1000, |
mbed_official | 82:0b31dbcd4769 | 55 | PTB1 = 0x1004, |
mbed_official | 82:0b31dbcd4769 | 56 | PTB2 = 0x1008, |
mbed_official | 82:0b31dbcd4769 | 57 | PTB3 = 0x100c, |
mbed_official | 82:0b31dbcd4769 | 58 | PTB4 = 0x1010, |
mbed_official | 82:0b31dbcd4769 | 59 | PTB5 = 0x1014, |
mbed_official | 82:0b31dbcd4769 | 60 | PTB6 = 0x1018, |
mbed_official | 82:0b31dbcd4769 | 61 | PTB7 = 0x101c, |
mbed_official | 82:0b31dbcd4769 | 62 | PTB8 = 0x1020, |
mbed_official | 82:0b31dbcd4769 | 63 | PTB9 = 0x1024, |
mbed_official | 82:0b31dbcd4769 | 64 | PTB10 = 0x1028, |
mbed_official | 82:0b31dbcd4769 | 65 | PTB11 = 0x102c, |
mbed_official | 82:0b31dbcd4769 | 66 | PTB12 = 0x1030, |
mbed_official | 82:0b31dbcd4769 | 67 | PTB13 = 0x1034, |
mbed_official | 82:0b31dbcd4769 | 68 | PTB14 = 0x1038, |
mbed_official | 82:0b31dbcd4769 | 69 | PTB15 = 0x103c, |
mbed_official | 82:0b31dbcd4769 | 70 | PTB16 = 0x1040, |
mbed_official | 82:0b31dbcd4769 | 71 | PTB17 = 0x1044, |
mbed_official | 82:0b31dbcd4769 | 72 | PTB18 = 0x1048, |
mbed_official | 82:0b31dbcd4769 | 73 | PTB19 = 0x104c, |
mbed_official | 82:0b31dbcd4769 | 74 | PTB20 = 0x1050, |
mbed_official | 82:0b31dbcd4769 | 75 | |
mbed_official | 82:0b31dbcd4769 | 76 | LED_RED = PTB8, |
mbed_official | 82:0b31dbcd4769 | 77 | LED_GREEN = PTB9, |
mbed_official | 82:0b31dbcd4769 | 78 | LED_BLUE = PTB10, |
mbed_official | 82:0b31dbcd4769 | 79 | |
mbed_official | 82:0b31dbcd4769 | 80 | // mbed original LED naming |
mbed_official | 98:3b81ecf1eeec | 81 | LED1 = LED_RED, |
mbed_official | 82:0b31dbcd4769 | 82 | LED2 = LED_GREEN, |
mbed_official | 98:3b81ecf1eeec | 83 | LED3 = LED_BLUE, |
mbed_official | 98:3b81ecf1eeec | 84 | LED4 = LED_BLUE, |
mbed_official | 82:0b31dbcd4769 | 85 | |
mbed_official | 82:0b31dbcd4769 | 86 | // USB Pins |
mbed_official | 82:0b31dbcd4769 | 87 | USBTX = PTB1, |
mbed_official | 82:0b31dbcd4769 | 88 | USBRX = PTB2, |
mbed_official | 82:0b31dbcd4769 | 89 | |
mbed_official | 82:0b31dbcd4769 | 90 | // Arduino Headers |
mbed_official | 82:0b31dbcd4769 | 91 | D0 = PTB2, |
mbed_official | 82:0b31dbcd4769 | 92 | D1 = PTB1, |
mbed_official | 82:0b31dbcd4769 | 93 | D2 = PTA11, |
mbed_official | 82:0b31dbcd4769 | 94 | D3 = PTB5, |
mbed_official | 82:0b31dbcd4769 | 95 | D4 = PTA10, |
mbed_official | 82:0b31dbcd4769 | 96 | D5 = PTA12, |
mbed_official | 82:0b31dbcd4769 | 97 | D6 = PTB6, |
mbed_official | 82:0b31dbcd4769 | 98 | D7 = PTB7, |
mbed_official | 98:3b81ecf1eeec | 99 | D8 = PTB10, |
mbed_official | 82:0b31dbcd4769 | 100 | D9 = PTB11, |
mbed_official | 82:0b31dbcd4769 | 101 | D10 = PTA5, |
mbed_official | 82:0b31dbcd4769 | 102 | D11 = PTA7, |
mbed_official | 82:0b31dbcd4769 | 103 | D12 = PTA6, |
mbed_official | 82:0b31dbcd4769 | 104 | D13 = PTB0, |
mbed_official | 82:0b31dbcd4769 | 105 | D14 = PTB4, |
mbed_official | 82:0b31dbcd4769 | 106 | D15 = PTB3, |
mbed_official | 82:0b31dbcd4769 | 107 | |
mbed_official | 82:0b31dbcd4769 | 108 | A0 = PTB8, |
mbed_official | 82:0b31dbcd4769 | 109 | A1 = PTB9, |
mbed_official | 82:0b31dbcd4769 | 110 | A2 = PTA8, |
mbed_official | 82:0b31dbcd4769 | 111 | A3 = PTA0, |
mbed_official | 82:0b31dbcd4769 | 112 | A4 = PTA9, |
mbed_official | 82:0b31dbcd4769 | 113 | A5 = PTB13, |
mbed_official | 98:3b81ecf1eeec | 114 | |
mbed_official | 98:3b81ecf1eeec | 115 | I2C_SCL = D15, |
mbed_official | 98:3b81ecf1eeec | 116 | I2C_SDA = D14, |
mbed_official | 82:0b31dbcd4769 | 117 | |
mbed_official | 82:0b31dbcd4769 | 118 | // Not connected |
mbed_official | 82:0b31dbcd4769 | 119 | NC = (int)0xFFFFFFFF |
mbed_official | 82:0b31dbcd4769 | 120 | } PinName; |
mbed_official | 82:0b31dbcd4769 | 121 | |
mbed_official | 82:0b31dbcd4769 | 122 | /* PullDown not available for KL05 */ |
mbed_official | 82:0b31dbcd4769 | 123 | typedef enum { |
mbed_official | 82:0b31dbcd4769 | 124 | PullNone = 0, |
mbed_official | 82:0b31dbcd4769 | 125 | PullUp = 2, |
mbed_official | 82:0b31dbcd4769 | 126 | } PinMode; |
mbed_official | 82:0b31dbcd4769 | 127 | |
mbed_official | 82:0b31dbcd4769 | 128 | #ifdef __cplusplus |
mbed_official | 82:0b31dbcd4769 | 129 | } |
mbed_official | 82:0b31dbcd4769 | 130 | #endif |
mbed_official | 82:0b31dbcd4769 | 131 | |
mbed_official | 82:0b31dbcd4769 | 132 | #endif |