Public fork of mbed-src to add generic stm32f030k6 target
Fork of mbed-src by
targets/hal/TARGET_Atmel/TARGET_SAM21/PinNames.h@579:53297373a894, 2015-07-01 (annotated)
- Committer:
- mbed_official
- Date:
- Wed Jul 01 09:45:11 2015 +0100
- Revision:
- 579:53297373a894
- Child:
- 592:a274ee790e56
Synchronized with git revision d5b4d2ab9c47edb4dc5776e7177b0c2263459081
Full URL: https://github.com/mbedmicro/mbed/commit/d5b4d2ab9c47edb4dc5776e7177b0c2263459081/
Initial version of drivers for SAMR21
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 579:53297373a894 | 1 | /* mbed Microcontroller Library |
mbed_official | 579:53297373a894 | 2 | * Copyright (c) 2013 Nordic Semiconductor |
mbed_official | 579:53297373a894 | 3 | * |
mbed_official | 579:53297373a894 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 579:53297373a894 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 579:53297373a894 | 6 | * You may obtain a copy of the License at |
mbed_official | 579:53297373a894 | 7 | * |
mbed_official | 579:53297373a894 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 579:53297373a894 | 9 | * |
mbed_official | 579:53297373a894 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 579:53297373a894 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 579:53297373a894 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 579:53297373a894 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 579:53297373a894 | 14 | * limitations under the License. |
mbed_official | 579:53297373a894 | 15 | */ |
mbed_official | 579:53297373a894 | 16 | #ifndef MBED_PINNAMES_H |
mbed_official | 579:53297373a894 | 17 | #define MBED_PINNAMES_H |
mbed_official | 579:53297373a894 | 18 | |
mbed_official | 579:53297373a894 | 19 | #include "cmsis.h" |
mbed_official | 579:53297373a894 | 20 | |
mbed_official | 579:53297373a894 | 21 | #ifdef __cplusplus |
mbed_official | 579:53297373a894 | 22 | extern "C" { |
mbed_official | 579:53297373a894 | 23 | #endif |
mbed_official | 579:53297373a894 | 24 | |
mbed_official | 579:53297373a894 | 25 | typedef enum { |
mbed_official | 579:53297373a894 | 26 | PIN_INPUT, |
mbed_official | 579:53297373a894 | 27 | PIN_OUTPUT, |
mbed_official | 579:53297373a894 | 28 | PIN_INPUT_OUTPUT //pin state can be set and read back |
mbed_official | 579:53297373a894 | 29 | } PinDirection; |
mbed_official | 579:53297373a894 | 30 | |
mbed_official | 579:53297373a894 | 31 | typedef enum { |
mbed_official | 579:53297373a894 | 32 | PA00 = 0, |
mbed_official | 579:53297373a894 | 33 | PA01 = 1, |
mbed_official | 579:53297373a894 | 34 | PA02 = 2, |
mbed_official | 579:53297373a894 | 35 | PA03 = 3, |
mbed_official | 579:53297373a894 | 36 | PA04 = 4, |
mbed_official | 579:53297373a894 | 37 | PA05 = 5, |
mbed_official | 579:53297373a894 | 38 | PA06 = 6, |
mbed_official | 579:53297373a894 | 39 | PA07 = 7, |
mbed_official | 579:53297373a894 | 40 | PA08 = 8, |
mbed_official | 579:53297373a894 | 41 | PA09 = 9, |
mbed_official | 579:53297373a894 | 42 | PA10 = 10, |
mbed_official | 579:53297373a894 | 43 | PA11 = 11, |
mbed_official | 579:53297373a894 | 44 | PA12 = 12, |
mbed_official | 579:53297373a894 | 45 | PA13 = 13, |
mbed_official | 579:53297373a894 | 46 | PA14 = 14, |
mbed_official | 579:53297373a894 | 47 | PA15 = 15, |
mbed_official | 579:53297373a894 | 48 | PA16 = 16, |
mbed_official | 579:53297373a894 | 49 | PA17 = 17, |
mbed_official | 579:53297373a894 | 50 | PA18 = 18, |
mbed_official | 579:53297373a894 | 51 | PA19 = 19, |
mbed_official | 579:53297373a894 | 52 | PA20 = 20, |
mbed_official | 579:53297373a894 | 53 | PA21 = 21, |
mbed_official | 579:53297373a894 | 54 | PA22 = 22, |
mbed_official | 579:53297373a894 | 55 | PA23 = 23, |
mbed_official | 579:53297373a894 | 56 | PA24 = 24, |
mbed_official | 579:53297373a894 | 57 | PA25 = 25, |
mbed_official | 579:53297373a894 | 58 | PA26 = 26, |
mbed_official | 579:53297373a894 | 59 | PA27 = 27, |
mbed_official | 579:53297373a894 | 60 | PA28 = 28, |
mbed_official | 579:53297373a894 | 61 | PA29 = 29, |
mbed_official | 579:53297373a894 | 62 | PA30 = 30, |
mbed_official | 579:53297373a894 | 63 | PA31 = 31, |
mbed_official | 579:53297373a894 | 64 | |
mbed_official | 579:53297373a894 | 65 | PB00 = 32, |
mbed_official | 579:53297373a894 | 66 | PB01 = 33, |
mbed_official | 579:53297373a894 | 67 | PB02 = 34, |
mbed_official | 579:53297373a894 | 68 | PB03 = 35, |
mbed_official | 579:53297373a894 | 69 | PB04 = 36, |
mbed_official | 579:53297373a894 | 70 | PB05 = 37, |
mbed_official | 579:53297373a894 | 71 | PB06 = 38, |
mbed_official | 579:53297373a894 | 72 | PB07 = 39, |
mbed_official | 579:53297373a894 | 73 | PB08 = 40, |
mbed_official | 579:53297373a894 | 74 | PB09 = 41, |
mbed_official | 579:53297373a894 | 75 | PB10 = 42, |
mbed_official | 579:53297373a894 | 76 | PB11 = 43, |
mbed_official | 579:53297373a894 | 77 | PB12 = 44, |
mbed_official | 579:53297373a894 | 78 | PB13 = 45, |
mbed_official | 579:53297373a894 | 79 | PB14 = 46, |
mbed_official | 579:53297373a894 | 80 | PB15 = 47, |
mbed_official | 579:53297373a894 | 81 | PB16 = 48, |
mbed_official | 579:53297373a894 | 82 | PB17 = 49, |
mbed_official | 579:53297373a894 | 83 | PB18 = 50, |
mbed_official | 579:53297373a894 | 84 | PB19 = 51, |
mbed_official | 579:53297373a894 | 85 | PB20 = 52, |
mbed_official | 579:53297373a894 | 86 | PB21 = 53, |
mbed_official | 579:53297373a894 | 87 | PB22 = 54, |
mbed_official | 579:53297373a894 | 88 | PB23 = 55, |
mbed_official | 579:53297373a894 | 89 | PB24 = 56, |
mbed_official | 579:53297373a894 | 90 | PB25 = 57, |
mbed_official | 579:53297373a894 | 91 | PB26 = 58, |
mbed_official | 579:53297373a894 | 92 | PB27 = 59, |
mbed_official | 579:53297373a894 | 93 | PB28 = 60, |
mbed_official | 579:53297373a894 | 94 | PB29 = 61, |
mbed_official | 579:53297373a894 | 95 | PB30 = 62, |
mbed_official | 579:53297373a894 | 96 | PB31 = 63, |
mbed_official | 579:53297373a894 | 97 | |
mbed_official | 579:53297373a894 | 98 | PC16 = 64, |
mbed_official | 579:53297373a894 | 99 | PC18 = 65, |
mbed_official | 579:53297373a894 | 100 | PC19 = 66, |
mbed_official | 579:53297373a894 | 101 | |
mbed_official | 579:53297373a894 | 102 | USBTX = PA04, |
mbed_official | 579:53297373a894 | 103 | USBRX = PA05, |
mbed_official | 579:53297373a894 | 104 | LED1 = PA19, |
mbed_official | 579:53297373a894 | 105 | |
mbed_official | 579:53297373a894 | 106 | // Not connected |
mbed_official | 579:53297373a894 | 107 | NC = (int)0xFFFFFFFF |
mbed_official | 579:53297373a894 | 108 | } PinName; |
mbed_official | 579:53297373a894 | 109 | |
mbed_official | 579:53297373a894 | 110 | typedef enum { |
mbed_official | 579:53297373a894 | 111 | PullNone = 0, |
mbed_official | 579:53297373a894 | 112 | PullUp = 1, |
mbed_official | 579:53297373a894 | 113 | PullDown = 2, |
mbed_official | 579:53297373a894 | 114 | PullDefault = PullUp |
mbed_official | 579:53297373a894 | 115 | } PinMode; |
mbed_official | 579:53297373a894 | 116 | |
mbed_official | 579:53297373a894 | 117 | #ifdef __cplusplus |
mbed_official | 579:53297373a894 | 118 | } |
mbed_official | 579:53297373a894 | 119 | #endif |
mbed_official | 579:53297373a894 | 120 | |
mbed_official | 579:53297373a894 | 121 | #endif |