mbed library sources
Fork of mbed-src by
targets/hal/TARGET_Atmel/TARGET_SAM21/TARGET_SAMR21G18A/PeripheralPins.c@592:a274ee790e56, 2015-07-17 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jul 17 09:15:10 2015 +0100
- Revision:
- 592:a274ee790e56
- Parent:
- 579:53297373a894
Synchronized with git revision e7144f83a8d75df80c4877936b6ffe552b0be9e6
Full URL: https://github.com/mbedmicro/mbed/commit/e7144f83a8d75df80c4877936b6ffe552b0be9e6/
More API implementation 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) 2006-2013 ARM Limited |
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 | |
mbed_official | 579:53297373a894 | 17 | #include "PeripheralPins.h" |
mbed_official | 579:53297373a894 | 18 | |
mbed_official | 579:53297373a894 | 19 | /************RTC***************/ |
mbed_official | 579:53297373a894 | 20 | const PinMap PinMap_RTC[] = { |
mbed_official | 592:a274ee790e56 | 21 | /* Not connected */ |
mbed_official | 592:a274ee790e56 | 22 | {NC , NC , NC} |
mbed_official | 579:53297373a894 | 23 | }; |
mbed_official | 579:53297373a894 | 24 | |
mbed_official | 579:53297373a894 | 25 | /************ADC***************/ |
mbed_official | 579:53297373a894 | 26 | const PinMap PinMap_ADC[] = { |
mbed_official | 592:a274ee790e56 | 27 | {PA04, ADC_4, 1}, |
mbed_official | 592:a274ee790e56 | 28 | {PA05, ADC_5, 1}, |
mbed_official | 592:a274ee790e56 | 29 | {PA06, ADC_6, 1}, |
mbed_official | 592:a274ee790e56 | 30 | {PA07, ADC_7, 1}, |
mbed_official | 592:a274ee790e56 | 31 | {PB02, ADC_10, 1}, |
mbed_official | 592:a274ee790e56 | 32 | {PB03, ADC_11, 1}, |
mbed_official | 592:a274ee790e56 | 33 | {PA08, ADC_16, 1}, |
mbed_official | 592:a274ee790e56 | 34 | {PA09, ADC_17, 1}, |
mbed_official | 579:53297373a894 | 35 | |
mbed_official | 592:a274ee790e56 | 36 | /* Not connected */ |
mbed_official | 592:a274ee790e56 | 37 | {NC , NC , NC} |
mbed_official | 579:53297373a894 | 38 | }; |
mbed_official | 579:53297373a894 | 39 | |
mbed_official | 592:a274ee790e56 | 40 | /************SERCOM Pins***********/ |
mbed_official | 592:a274ee790e56 | 41 | const PinMap PinMap_SERCOM_PAD[] = { |
mbed_official | 592:a274ee790e56 | 42 | {PA04, SERCOM0_PAD0, 3}, |
mbed_official | 592:a274ee790e56 | 43 | {PA05, SERCOM0_PAD1, 3}, |
mbed_official | 592:a274ee790e56 | 44 | {PA06, SERCOM0_PAD2, 3}, |
mbed_official | 592:a274ee790e56 | 45 | {PA07, SERCOM0_PAD3, 3}, |
mbed_official | 592:a274ee790e56 | 46 | {PA08, SERCOM0_PAD0, 2}, |
mbed_official | 592:a274ee790e56 | 47 | {PA09, SERCOM0_PAD1, 2}, |
mbed_official | 592:a274ee790e56 | 48 | {PA12, SERCOM2_PAD0, 2}, |
mbed_official | 592:a274ee790e56 | 49 | {PA13, SERCOM2_PAD1, 2}, |
mbed_official | 592:a274ee790e56 | 50 | {PA14, SERCOM2_PAD2, 2}, |
mbed_official | 592:a274ee790e56 | 51 | {PA15, SERCOM2_PAD3, 2}, |
mbed_official | 592:a274ee790e56 | 52 | {PA16, SERCOM1_PAD0, 2}, |
mbed_official | 592:a274ee790e56 | 53 | {PA17, SERCOM1_PAD1, 2}, |
mbed_official | 592:a274ee790e56 | 54 | {PA18, SERCOM1_PAD2, 2}, |
mbed_official | 592:a274ee790e56 | 55 | {PA19, SERCOM1_PAD3, 2}, |
mbed_official | 592:a274ee790e56 | 56 | {PA22, SERCOM3_PAD0, 2}, |
mbed_official | 592:a274ee790e56 | 57 | {PA23, SERCOM3_PAD1, 2}, |
mbed_official | 592:a274ee790e56 | 58 | {PA24, SERCOM3_PAD2, 2}, |
mbed_official | 592:a274ee790e56 | 59 | {PA25, SERCOM3_PAD3, 2}, |
mbed_official | 592:a274ee790e56 | 60 | {PA27, SERCOM3_PAD0, 5}, |
mbed_official | 592:a274ee790e56 | 61 | {PA28, SERCOM3_PAD1, 5}, |
mbed_official | 592:a274ee790e56 | 62 | {PB02, SERCOM5_PAD0, 3}, |
mbed_official | 592:a274ee790e56 | 63 | {PB03, SERCOM5_PAD1, 3}, |
mbed_official | 592:a274ee790e56 | 64 | {PB22, SERCOM5_PAD2, 3}, |
mbed_official | 592:a274ee790e56 | 65 | {PB23, SERCOM5_PAD3, 3}, |
mbed_official | 592:a274ee790e56 | 66 | {PB30, SERCOM4_PAD2, 5}, |
mbed_official | 592:a274ee790e56 | 67 | {PB31, SERCOM4_PAD1, 5}, |
mbed_official | 592:a274ee790e56 | 68 | {PC18, SERCOM4_PAD3, 5}, |
mbed_official | 592:a274ee790e56 | 69 | {PC19, SERCOM4_PAD0, 5}, |
mbed_official | 579:53297373a894 | 70 | |
mbed_official | 592:a274ee790e56 | 71 | /* Not connected */ |
mbed_official | 592:a274ee790e56 | 72 | {NC , NC , NC} |
mbed_official | 579:53297373a894 | 73 | }; |
mbed_official | 579:53297373a894 | 74 | |
mbed_official | 592:a274ee790e56 | 75 | /*******SERCOM Pins extended*******/ |
mbed_official | 592:a274ee790e56 | 76 | const PinMap PinMap_SERCOM_PADEx[] = { |
mbed_official | 592:a274ee790e56 | 77 | {PA00, SERCOM1_PAD0, 3}, |
mbed_official | 592:a274ee790e56 | 78 | {PA01, SERCOM1_PAD1, 3}, |
mbed_official | 592:a274ee790e56 | 79 | {PA08, SERCOM2_PAD0, 3}, |
mbed_official | 592:a274ee790e56 | 80 | {PA09, SERCOM2_PAD1, 3}, |
mbed_official | 592:a274ee790e56 | 81 | {PA16, SERCOM3_PAD0, 3}, |
mbed_official | 592:a274ee790e56 | 82 | {PA17, SERCOM3_PAD1, 3}, |
mbed_official | 592:a274ee790e56 | 83 | {PA18, SERCOM3_PAD2, 3}, |
mbed_official | 592:a274ee790e56 | 84 | {PA19, SERCOM3_PAD3, 3}, |
mbed_official | 592:a274ee790e56 | 85 | {PA22, SERCOM5_PAD0, 3}, |
mbed_official | 592:a274ee790e56 | 86 | {PA23, SERCOM5_PAD1, 3}, |
mbed_official | 592:a274ee790e56 | 87 | {PA24, SERCOM5_PAD2, 3}, |
mbed_official | 592:a274ee790e56 | 88 | {PA25, SERCOM5_PAD3, 3}, |
mbed_official | 592:a274ee790e56 | 89 | {PA30, SERCOM1_PAD2, 3}, |
mbed_official | 592:a274ee790e56 | 90 | {PA31, SERCOM1_PAD3, 3}, |
mbed_official | 592:a274ee790e56 | 91 | |
mbed_official | 592:a274ee790e56 | 92 | /* Not connected */ |
mbed_official | 592:a274ee790e56 | 93 | {NC , NC , NC} |
mbed_official | 579:53297373a894 | 94 | }; |
mbed_official | 579:53297373a894 | 95 | |
mbed_official | 579:53297373a894 | 96 | |
mbed_official | 579:53297373a894 | 97 | /************PWM***************/ |
mbed_official | 579:53297373a894 | 98 | const PinMap PinMap_PWM[] = { |
mbed_official | 592:a274ee790e56 | 99 | /* Not connected */ |
mbed_official | 592:a274ee790e56 | 100 | {NC , NC , NC} |
mbed_official | 579:53297373a894 | 101 | }; |
mbed_official | 579:53297373a894 | 102 | |
mbed_official | 592:a274ee790e56 | 103 | /**********EXTINT*************/ |
mbed_official | 592:a274ee790e56 | 104 | const PinMap PinMap_EXTINT[] = { |
mbed_official | 592:a274ee790e56 | 105 | {PB00, EXTINT_0, 0}, |
mbed_official | 592:a274ee790e56 | 106 | {PB16, EXTINT_0, 0}, |
mbed_official | 579:53297373a894 | 107 | |
mbed_official | 592:a274ee790e56 | 108 | {PA17, EXTINT_1, 0}, |
mbed_official | 592:a274ee790e56 | 109 | {PB17, EXTINT_1, 0}, |
mbed_official | 592:a274ee790e56 | 110 | {PA01, EXTINT_1, 0}, |
mbed_official | 579:53297373a894 | 111 | |
mbed_official | 592:a274ee790e56 | 112 | {PA18, EXTINT_2, 0}, |
mbed_official | 592:a274ee790e56 | 113 | {PB02, EXTINT_2, 0}, |
mbed_official | 592:a274ee790e56 | 114 | |
mbed_official | 592:a274ee790e56 | 115 | {PA19, EXTINT_3, 0}, |
mbed_official | 592:a274ee790e56 | 116 | {PB03, EXTINT_3, 0}, |
mbed_official | 579:53297373a894 | 117 | |
mbed_official | 592:a274ee790e56 | 118 | {PA04, EXTINT_4, 0}, |
mbed_official | 592:a274ee790e56 | 119 | |
mbed_official | 592:a274ee790e56 | 120 | {PA05, EXTINT_5, 0}, |
mbed_official | 579:53297373a894 | 121 | |
mbed_official | 592:a274ee790e56 | 122 | {PA06, EXTINT_6, 0}, |
mbed_official | 592:a274ee790e56 | 123 | {PA22, EXTINT_6, 0}, |
mbed_official | 592:a274ee790e56 | 124 | {PB22, EXTINT_6, 0}, |
mbed_official | 579:53297373a894 | 125 | |
mbed_official | 592:a274ee790e56 | 126 | {PA07, EXTINT_7, 0}, |
mbed_official | 592:a274ee790e56 | 127 | {PA23, EXTINT_7, 0}, |
mbed_official | 592:a274ee790e56 | 128 | {PB23, EXTINT_7, 0}, |
mbed_official | 592:a274ee790e56 | 129 | |
mbed_official | 592:a274ee790e56 | 130 | {PA28, EXTINT_8, 0}, |
mbed_official | 592:a274ee790e56 | 131 | |
mbed_official | 592:a274ee790e56 | 132 | {PA09, EXTINT_9, 0}, |
mbed_official | 592:a274ee790e56 | 133 | |
mbed_official | 592:a274ee790e56 | 134 | {PA30, EXTINT_10, 0}, |
mbed_official | 592:a274ee790e56 | 135 | |
mbed_official | 592:a274ee790e56 | 136 | {PA31, EXTINT_11, 0}, |
mbed_official | 579:53297373a894 | 137 | |
mbed_official | 592:a274ee790e56 | 138 | {PA12, EXTINT_12, 0}, |
mbed_official | 592:a274ee790e56 | 139 | {PA24, EXTINT_12, 0}, |
mbed_official | 579:53297373a894 | 140 | |
mbed_official | 592:a274ee790e56 | 141 | {PA13, EXTINT_13, 0}, |
mbed_official | 592:a274ee790e56 | 142 | {PA25, EXTINT_13, 0}, |
mbed_official | 579:53297373a894 | 143 | |
mbed_official | 592:a274ee790e56 | 144 | {PA14, EXTINT_14, 0}, |
mbed_official | 579:53297373a894 | 145 | |
mbed_official | 592:a274ee790e56 | 146 | {PA15, EXTINT_15, 0}, |
mbed_official | 592:a274ee790e56 | 147 | {PA27, EXTINT_15, 0}, |
mbed_official | 579:53297373a894 | 148 | |
mbed_official | 592:a274ee790e56 | 149 | /* Not connected */ |
mbed_official | 592:a274ee790e56 | 150 | {NC , NC , NC} |
mbed_official | 592:a274ee790e56 | 151 | }; |
mbed_official | 579:53297373a894 | 152 | |
mbed_official | 579:53297373a894 | 153 | |
mbed_official | 579:53297373a894 | 154 |