The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/PinNames.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 111:4336505e4b1c | 1 | /* mbed Microcontroller Library |
Kojto | 111:4336505e4b1c | 2 | * Copyright (c) 2006-2015 ARM Limited |
Kojto | 111:4336505e4b1c | 3 | * |
Kojto | 111:4336505e4b1c | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 111:4336505e4b1c | 5 | * you may not use this file except in compliance with the License. |
Kojto | 111:4336505e4b1c | 6 | * You may obtain a copy of the License at |
Kojto | 111:4336505e4b1c | 7 | * |
Kojto | 111:4336505e4b1c | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 111:4336505e4b1c | 9 | * |
Kojto | 111:4336505e4b1c | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 111:4336505e4b1c | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 111:4336505e4b1c | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 111:4336505e4b1c | 13 | * See the License for the specific language governing permissions and |
Kojto | 111:4336505e4b1c | 14 | * limitations under the License. |
Kojto | 111:4336505e4b1c | 15 | */ |
Kojto | 111:4336505e4b1c | 16 | #ifndef MBED_PINNAMES_H |
Kojto | 111:4336505e4b1c | 17 | #define MBED_PINNAMES_H |
Kojto | 111:4336505e4b1c | 18 | |
Kojto | 111:4336505e4b1c | 19 | #include "cmsis.h" |
Kojto | 111:4336505e4b1c | 20 | |
Kojto | 111:4336505e4b1c | 21 | #ifdef __cplusplus |
Kojto | 111:4336505e4b1c | 22 | extern "C" { |
Kojto | 111:4336505e4b1c | 23 | #endif |
Kojto | 111:4336505e4b1c | 24 | |
Kojto | 111:4336505e4b1c | 25 | typedef enum { |
Kojto | 111:4336505e4b1c | 26 | PIN_INPUT, |
Kojto | 111:4336505e4b1c | 27 | PIN_OUTPUT, |
Kojto | 111:4336505e4b1c | 28 | PIN_INPUT_OUTPUT //pin state can be set and read back |
Kojto | 111:4336505e4b1c | 29 | } PinDirection; |
Kojto | 111:4336505e4b1c | 30 | |
Kojto | 111:4336505e4b1c | 31 | typedef enum { |
Kojto | 111:4336505e4b1c | 32 | PA00 = 0, |
Kojto | 111:4336505e4b1c | 33 | PA01 = 1, |
Kojto | 111:4336505e4b1c | 34 | PA04 = 4, |
Kojto | 111:4336505e4b1c | 35 | PA05 = 5, |
Kojto | 111:4336505e4b1c | 36 | PA06 = 6, |
Kojto | 111:4336505e4b1c | 37 | PA07 = 7, |
Kojto | 111:4336505e4b1c | 38 | PA08 = 8, |
Kojto | 111:4336505e4b1c | 39 | PA09 = 9, |
Kojto | 111:4336505e4b1c | 40 | PA10 = 10, |
Kojto | 111:4336505e4b1c | 41 | PA11 = 11, |
Kojto | 111:4336505e4b1c | 42 | PA12 = 12, |
Kojto | 111:4336505e4b1c | 43 | PA13 = 13, |
Kojto | 111:4336505e4b1c | 44 | PA14 = 14, |
Kojto | 111:4336505e4b1c | 45 | PA15 = 15, |
Kojto | 111:4336505e4b1c | 46 | PA16 = 16, |
Kojto | 111:4336505e4b1c | 47 | PA17 = 17, |
Kojto | 111:4336505e4b1c | 48 | PA18 = 18, |
Kojto | 111:4336505e4b1c | 49 | PA19 = 19, |
Kojto | 111:4336505e4b1c | 50 | PA20 = 20, |
Kojto | 111:4336505e4b1c | 51 | PA22 = 22, |
Kojto | 111:4336505e4b1c | 52 | PA23 = 23, |
Kojto | 111:4336505e4b1c | 53 | PA24 = 24, |
Kojto | 111:4336505e4b1c | 54 | PA25 = 25, |
Kojto | 111:4336505e4b1c | 55 | PA27 = 27, |
Kojto | 111:4336505e4b1c | 56 | PA28 = 28, |
Kojto | 111:4336505e4b1c | 57 | PA30 = 30, |
Kojto | 111:4336505e4b1c | 58 | PA31 = 31, |
Kojto | 111:4336505e4b1c | 59 | |
Kojto | 111:4336505e4b1c | 60 | PB00 = 32, |
Kojto | 111:4336505e4b1c | 61 | PB02 = 34, |
Kojto | 111:4336505e4b1c | 62 | PB03 = 35, |
Kojto | 111:4336505e4b1c | 63 | PB08 = 40, |
Kojto | 111:4336505e4b1c | 64 | PB09 = 41, |
Kojto | 111:4336505e4b1c | 65 | PB14 = 46, |
Kojto | 111:4336505e4b1c | 66 | PB15 = 47, |
Kojto | 111:4336505e4b1c | 67 | PB16 = 48, |
Kojto | 111:4336505e4b1c | 68 | PB17 = 49, |
Kojto | 111:4336505e4b1c | 69 | PB22 = 54, |
Kojto | 111:4336505e4b1c | 70 | PB23 = 55, |
Kojto | 111:4336505e4b1c | 71 | PB30 = 62, |
Kojto | 111:4336505e4b1c | 72 | PB31 = 63, |
Kojto | 111:4336505e4b1c | 73 | |
Kojto | 111:4336505e4b1c | 74 | PC16 = 80, |
Kojto | 111:4336505e4b1c | 75 | PC18 = 82, |
Kojto | 111:4336505e4b1c | 76 | PC19 = 83, |
Kojto | 111:4336505e4b1c | 77 | |
Kojto | 111:4336505e4b1c | 78 | USBTX = PA04, |
Kojto | 111:4336505e4b1c | 79 | USBRX = PA05, |
Kojto | 111:4336505e4b1c | 80 | |
Kojto | 111:4336505e4b1c | 81 | LED1 = PA19, |
Kojto | 111:4336505e4b1c | 82 | LED2 = PA19, |
Kojto | 111:4336505e4b1c | 83 | LED3 = PA19, |
Kojto | 111:4336505e4b1c | 84 | LED4 = PA19, |
Kojto | 111:4336505e4b1c | 85 | |
Kojto | 111:4336505e4b1c | 86 | // Not connected |
Kojto | 111:4336505e4b1c | 87 | NC = (int)0xFFFFFFFF |
Kojto | 111:4336505e4b1c | 88 | } PinName; |
Kojto | 111:4336505e4b1c | 89 | |
Kojto | 111:4336505e4b1c | 90 | typedef enum { |
Kojto | 111:4336505e4b1c | 91 | PullNone = 0, |
Kojto | 111:4336505e4b1c | 92 | PullUp = 1, |
Kojto | 111:4336505e4b1c | 93 | PullDown = 2, |
Kojto | 111:4336505e4b1c | 94 | PullDefault = PullUp |
Kojto | 111:4336505e4b1c | 95 | } PinMode; |
Kojto | 111:4336505e4b1c | 96 | |
Kojto | 111:4336505e4b1c | 97 | #ifdef __cplusplus |
Kojto | 111:4336505e4b1c | 98 | } |
Kojto | 111:4336505e4b1c | 99 | #endif |
Kojto | 111:4336505e4b1c | 100 | |
Kojto | 111:4336505e4b1c | 101 | #endif |