Mouse code for the MacroRat
mbed-dev/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PinNames.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /* mbed Microcontroller Library |
sahilmgandhi | 18:6a4db94011d3 | 2 | * Copyright (c) 2006-2015 ARM Limited |
sahilmgandhi | 18:6a4db94011d3 | 3 | * |
sahilmgandhi | 18:6a4db94011d3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
sahilmgandhi | 18:6a4db94011d3 | 5 | * you may not use this file except in compliance with the License. |
sahilmgandhi | 18:6a4db94011d3 | 6 | * You may obtain a copy of the License at |
sahilmgandhi | 18:6a4db94011d3 | 7 | * |
sahilmgandhi | 18:6a4db94011d3 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
sahilmgandhi | 18:6a4db94011d3 | 9 | * |
sahilmgandhi | 18:6a4db94011d3 | 10 | * Unless required by applicable law or agreed to in writing, software |
sahilmgandhi | 18:6a4db94011d3 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
sahilmgandhi | 18:6a4db94011d3 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
sahilmgandhi | 18:6a4db94011d3 | 13 | * See the License for the specific language governing permissions and |
sahilmgandhi | 18:6a4db94011d3 | 14 | * limitations under the License. |
sahilmgandhi | 18:6a4db94011d3 | 15 | */ |
sahilmgandhi | 18:6a4db94011d3 | 16 | #ifndef MBED_PINNAMES_H |
sahilmgandhi | 18:6a4db94011d3 | 17 | #define MBED_PINNAMES_H |
sahilmgandhi | 18:6a4db94011d3 | 18 | |
sahilmgandhi | 18:6a4db94011d3 | 19 | #include "cmsis.h" |
sahilmgandhi | 18:6a4db94011d3 | 20 | |
sahilmgandhi | 18:6a4db94011d3 | 21 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 22 | extern "C" { |
sahilmgandhi | 18:6a4db94011d3 | 23 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 24 | |
sahilmgandhi | 18:6a4db94011d3 | 25 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 26 | PIN_INPUT, |
sahilmgandhi | 18:6a4db94011d3 | 27 | PIN_OUTPUT, |
sahilmgandhi | 18:6a4db94011d3 | 28 | PIN_INPUT_OUTPUT //pin state can be set and read back |
sahilmgandhi | 18:6a4db94011d3 | 29 | } PinDirection; |
sahilmgandhi | 18:6a4db94011d3 | 30 | |
sahilmgandhi | 18:6a4db94011d3 | 31 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 32 | PA00 = 0, |
sahilmgandhi | 18:6a4db94011d3 | 33 | PA01 = 1, |
sahilmgandhi | 18:6a4db94011d3 | 34 | PA02 = 2, |
sahilmgandhi | 18:6a4db94011d3 | 35 | PA03 = 3, |
sahilmgandhi | 18:6a4db94011d3 | 36 | PA04 = 4, |
sahilmgandhi | 18:6a4db94011d3 | 37 | PA05 = 5, |
sahilmgandhi | 18:6a4db94011d3 | 38 | PA06 = 6, |
sahilmgandhi | 18:6a4db94011d3 | 39 | PA07 = 7, |
sahilmgandhi | 18:6a4db94011d3 | 40 | PA08 = 8, |
sahilmgandhi | 18:6a4db94011d3 | 41 | PA09 = 9, |
sahilmgandhi | 18:6a4db94011d3 | 42 | PA10 = 10, |
sahilmgandhi | 18:6a4db94011d3 | 43 | PA11 = 11, |
sahilmgandhi | 18:6a4db94011d3 | 44 | PA12 = 12, |
sahilmgandhi | 18:6a4db94011d3 | 45 | PA13 = 13, |
sahilmgandhi | 18:6a4db94011d3 | 46 | PA14 = 14, |
sahilmgandhi | 18:6a4db94011d3 | 47 | PA15 = 15, |
sahilmgandhi | 18:6a4db94011d3 | 48 | PA16 = 16, |
sahilmgandhi | 18:6a4db94011d3 | 49 | PA17 = 17, |
sahilmgandhi | 18:6a4db94011d3 | 50 | PA18 = 18, |
sahilmgandhi | 18:6a4db94011d3 | 51 | PA19 = 19, |
sahilmgandhi | 18:6a4db94011d3 | 52 | PA20 = 20, |
sahilmgandhi | 18:6a4db94011d3 | 53 | PA21 = 21, |
sahilmgandhi | 18:6a4db94011d3 | 54 | PA22 = 22, |
sahilmgandhi | 18:6a4db94011d3 | 55 | PA23 = 23, |
sahilmgandhi | 18:6a4db94011d3 | 56 | PA24 = 24, |
sahilmgandhi | 18:6a4db94011d3 | 57 | PA25 = 25, |
sahilmgandhi | 18:6a4db94011d3 | 58 | PA26 = 26, |
sahilmgandhi | 18:6a4db94011d3 | 59 | PA27 = 27, |
sahilmgandhi | 18:6a4db94011d3 | 60 | PA28 = 28, |
sahilmgandhi | 18:6a4db94011d3 | 61 | PA29 = 29, |
sahilmgandhi | 18:6a4db94011d3 | 62 | PA30 = 30, |
sahilmgandhi | 18:6a4db94011d3 | 63 | PA31 = 31, |
sahilmgandhi | 18:6a4db94011d3 | 64 | |
sahilmgandhi | 18:6a4db94011d3 | 65 | PB00 = 32, |
sahilmgandhi | 18:6a4db94011d3 | 66 | PB01 = 33, |
sahilmgandhi | 18:6a4db94011d3 | 67 | PB02 = 34, |
sahilmgandhi | 18:6a4db94011d3 | 68 | PB03 = 35, |
sahilmgandhi | 18:6a4db94011d3 | 69 | PB04 = 36, |
sahilmgandhi | 18:6a4db94011d3 | 70 | PB05 = 37, |
sahilmgandhi | 18:6a4db94011d3 | 71 | PB06 = 38, |
sahilmgandhi | 18:6a4db94011d3 | 72 | PB07 = 39, |
sahilmgandhi | 18:6a4db94011d3 | 73 | PB08 = 40, |
sahilmgandhi | 18:6a4db94011d3 | 74 | PB09 = 41, |
sahilmgandhi | 18:6a4db94011d3 | 75 | PB10 = 42, |
sahilmgandhi | 18:6a4db94011d3 | 76 | PB11 = 43, |
sahilmgandhi | 18:6a4db94011d3 | 77 | PB12 = 44, |
sahilmgandhi | 18:6a4db94011d3 | 78 | PB13 = 45, |
sahilmgandhi | 18:6a4db94011d3 | 79 | PB14 = 46, |
sahilmgandhi | 18:6a4db94011d3 | 80 | PB15 = 47, |
sahilmgandhi | 18:6a4db94011d3 | 81 | |
sahilmgandhi | 18:6a4db94011d3 | 82 | USBTX = PA28, |
sahilmgandhi | 18:6a4db94011d3 | 83 | USBRX = PA27, |
sahilmgandhi | 18:6a4db94011d3 | 84 | |
sahilmgandhi | 18:6a4db94011d3 | 85 | LED1 = PA06, |
sahilmgandhi | 18:6a4db94011d3 | 86 | LED2 = PA06, |
sahilmgandhi | 18:6a4db94011d3 | 87 | LED3 = PA06, |
sahilmgandhi | 18:6a4db94011d3 | 88 | LED4 = PA06, |
sahilmgandhi | 18:6a4db94011d3 | 89 | |
sahilmgandhi | 18:6a4db94011d3 | 90 | // Not connected |
sahilmgandhi | 18:6a4db94011d3 | 91 | NC = (int)0xFFFFFFFF |
sahilmgandhi | 18:6a4db94011d3 | 92 | } PinName; |
sahilmgandhi | 18:6a4db94011d3 | 93 | |
sahilmgandhi | 18:6a4db94011d3 | 94 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 95 | PullNone = 0, |
sahilmgandhi | 18:6a4db94011d3 | 96 | PullUp = 1, |
sahilmgandhi | 18:6a4db94011d3 | 97 | PullDown = 2, |
sahilmgandhi | 18:6a4db94011d3 | 98 | PullDefault = PullUp |
sahilmgandhi | 18:6a4db94011d3 | 99 | } PinMode; |
sahilmgandhi | 18:6a4db94011d3 | 100 | |
sahilmgandhi | 18:6a4db94011d3 | 101 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 102 | } |
sahilmgandhi | 18:6a4db94011d3 | 103 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 104 | |
sahilmgandhi | 18:6a4db94011d3 | 105 | #endif |