Public fork of mbed-src to add generic stm32f030k6 target
Fork of mbed-src by
targets/hal/TARGET_Atmel/TARGET_SAM21/PinNames.h@596:d25a30803853, 2015-07-21 (annotated)
- Committer:
- ersatzavian
- Date:
- Tue Jul 21 14:09:45 2015 -0700
- Revision:
- 596:d25a30803853
- Parent:
- 592:a274ee790e56
added missing bracket probably I hope
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 | PA04 = 4, |
mbed_official | 579:53297373a894 | 35 | PA05 = 5, |
mbed_official | 579:53297373a894 | 36 | PA06 = 6, |
mbed_official | 579:53297373a894 | 37 | PA07 = 7, |
mbed_official | 579:53297373a894 | 38 | PA08 = 8, |
mbed_official | 579:53297373a894 | 39 | PA09 = 9, |
mbed_official | 579:53297373a894 | 40 | PA10 = 10, |
mbed_official | 579:53297373a894 | 41 | PA11 = 11, |
mbed_official | 579:53297373a894 | 42 | PA12 = 12, |
mbed_official | 579:53297373a894 | 43 | PA13 = 13, |
mbed_official | 579:53297373a894 | 44 | PA14 = 14, |
mbed_official | 579:53297373a894 | 45 | PA15 = 15, |
mbed_official | 579:53297373a894 | 46 | PA16 = 16, |
mbed_official | 579:53297373a894 | 47 | PA17 = 17, |
mbed_official | 579:53297373a894 | 48 | PA18 = 18, |
mbed_official | 579:53297373a894 | 49 | PA19 = 19, |
mbed_official | 579:53297373a894 | 50 | PA20 = 20, |
mbed_official | 579:53297373a894 | 51 | PA22 = 22, |
mbed_official | 579:53297373a894 | 52 | PA23 = 23, |
mbed_official | 579:53297373a894 | 53 | PA24 = 24, |
mbed_official | 579:53297373a894 | 54 | PA25 = 25, |
mbed_official | 579:53297373a894 | 55 | PA27 = 27, |
mbed_official | 579:53297373a894 | 56 | PA28 = 28, |
mbed_official | 579:53297373a894 | 57 | PA30 = 30, |
mbed_official | 579:53297373a894 | 58 | PA31 = 31, |
mbed_official | 579:53297373a894 | 59 | |
mbed_official | 579:53297373a894 | 60 | PB00 = 32, |
mbed_official | 579:53297373a894 | 61 | PB02 = 34, |
mbed_official | 579:53297373a894 | 62 | PB03 = 35, |
mbed_official | 579:53297373a894 | 63 | PB08 = 40, |
mbed_official | 579:53297373a894 | 64 | PB09 = 41, |
mbed_official | 579:53297373a894 | 65 | PB14 = 46, |
mbed_official | 579:53297373a894 | 66 | PB15 = 47, |
mbed_official | 579:53297373a894 | 67 | PB16 = 48, |
mbed_official | 579:53297373a894 | 68 | PB17 = 49, |
mbed_official | 579:53297373a894 | 69 | PB22 = 54, |
mbed_official | 579:53297373a894 | 70 | PB23 = 55, |
mbed_official | 579:53297373a894 | 71 | PB30 = 62, |
mbed_official | 579:53297373a894 | 72 | PB31 = 63, |
mbed_official | 579:53297373a894 | 73 | |
mbed_official | 592:a274ee790e56 | 74 | PC16 = 80, |
mbed_official | 592:a274ee790e56 | 75 | PC18 = 82, |
mbed_official | 592:a274ee790e56 | 76 | PC19 = 83, |
mbed_official | 579:53297373a894 | 77 | |
mbed_official | 579:53297373a894 | 78 | USBTX = PA04, |
mbed_official | 579:53297373a894 | 79 | USBRX = PA05, |
mbed_official | 592:a274ee790e56 | 80 | |
mbed_official | 579:53297373a894 | 81 | LED1 = PA19, |
mbed_official | 592:a274ee790e56 | 82 | LED2 = PA19, |
mbed_official | 592:a274ee790e56 | 83 | LED3 = PA19, |
mbed_official | 592:a274ee790e56 | 84 | LED4 = PA19, |
mbed_official | 579:53297373a894 | 85 | |
mbed_official | 579:53297373a894 | 86 | // Not connected |
mbed_official | 579:53297373a894 | 87 | NC = (int)0xFFFFFFFF |
mbed_official | 579:53297373a894 | 88 | } PinName; |
mbed_official | 579:53297373a894 | 89 | |
mbed_official | 579:53297373a894 | 90 | typedef enum { |
mbed_official | 579:53297373a894 | 91 | PullNone = 0, |
mbed_official | 579:53297373a894 | 92 | PullUp = 1, |
mbed_official | 579:53297373a894 | 93 | PullDown = 2, |
mbed_official | 579:53297373a894 | 94 | PullDefault = PullUp |
mbed_official | 579:53297373a894 | 95 | } PinMode; |
mbed_official | 579:53297373a894 | 96 | |
mbed_official | 579:53297373a894 | 97 | #ifdef __cplusplus |
mbed_official | 579:53297373a894 | 98 | } |
mbed_official | 579:53297373a894 | 99 | #endif |
mbed_official | 579:53297373a894 | 100 | |
mbed_official | 579:53297373a894 | 101 | #endif |