1 /** 2 * \file 3 * 4 * \brief Peripheral I/O description for SAMD20G18U 5 * 6 * Copyright (c) 2017 Microchip Technology Inc. 7 * 8 * \asf_license_start 9 * 10 * \page License 11 * 12 * SPDX-License-Identifier: Apache-2.0 13 * 14 * Licensed under the Apache License, Version 2.0 (the "License"); you may 15 * not use this file except in compliance with the License. 16 * You may obtain a copy of the Licence at 17 * 18 * http://www.apache.org/licenses/LICENSE-2.0 19 * 20 * Unless required by applicable law or agreed to in writing, software 21 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 22 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 23 * See the License for the specific language governing permissions and 24 * limitations under the License. 25 * 26 * \asf_license_stop 27 * 28 */ 29 30 #ifndef _SAMD20G18U_PIO_ 31 #define _SAMD20G18U_PIO_ 32 33 #define PIN_PA00 0 /**< \brief Pin Number for PA00 */ 34 #define PORT_PA00 (_UL_(1) << 0) /**< \brief PORT Mask for PA00 */ 35 #define PIN_PA01 1 /**< \brief Pin Number for PA01 */ 36 #define PORT_PA01 (_UL_(1) << 1) /**< \brief PORT Mask for PA01 */ 37 #define PIN_PA02 2 /**< \brief Pin Number for PA02 */ 38 #define PORT_PA02 (_UL_(1) << 2) /**< \brief PORT Mask for PA02 */ 39 #define PIN_PA03 3 /**< \brief Pin Number for PA03 */ 40 #define PORT_PA03 (_UL_(1) << 3) /**< \brief PORT Mask for PA03 */ 41 #define PIN_PA04 4 /**< \brief Pin Number for PA04 */ 42 #define PORT_PA04 (_UL_(1) << 4) /**< \brief PORT Mask for PA04 */ 43 #define PIN_PA05 5 /**< \brief Pin Number for PA05 */ 44 #define PORT_PA05 (_UL_(1) << 5) /**< \brief PORT Mask for PA05 */ 45 #define PIN_PA06 6 /**< \brief Pin Number for PA06 */ 46 #define PORT_PA06 (_UL_(1) << 6) /**< \brief PORT Mask for PA06 */ 47 #define PIN_PA07 7 /**< \brief Pin Number for PA07 */ 48 #define PORT_PA07 (_UL_(1) << 7) /**< \brief PORT Mask for PA07 */ 49 #define PIN_PA08 8 /**< \brief Pin Number for PA08 */ 50 #define PORT_PA08 (_UL_(1) << 8) /**< \brief PORT Mask for PA08 */ 51 #define PIN_PA09 9 /**< \brief Pin Number for PA09 */ 52 #define PORT_PA09 (_UL_(1) << 9) /**< \brief PORT Mask for PA09 */ 53 #define PIN_PA10 10 /**< \brief Pin Number for PA10 */ 54 #define PORT_PA10 (_UL_(1) << 10) /**< \brief PORT Mask for PA10 */ 55 #define PIN_PA11 11 /**< \brief Pin Number for PA11 */ 56 #define PORT_PA11 (_UL_(1) << 11) /**< \brief PORT Mask for PA11 */ 57 #define PIN_PA12 12 /**< \brief Pin Number for PA12 */ 58 #define PORT_PA12 (_UL_(1) << 12) /**< \brief PORT Mask for PA12 */ 59 #define PIN_PA13 13 /**< \brief Pin Number for PA13 */ 60 #define PORT_PA13 (_UL_(1) << 13) /**< \brief PORT Mask for PA13 */ 61 #define PIN_PA14 14 /**< \brief Pin Number for PA14 */ 62 #define PORT_PA14 (_UL_(1) << 14) /**< \brief PORT Mask for PA14 */ 63 #define PIN_PA15 15 /**< \brief Pin Number for PA15 */ 64 #define PORT_PA15 (_UL_(1) << 15) /**< \brief PORT Mask for PA15 */ 65 #define PIN_PA16 16 /**< \brief Pin Number for PA16 */ 66 #define PORT_PA16 (_UL_(1) << 16) /**< \brief PORT Mask for PA16 */ 67 #define PIN_PA17 17 /**< \brief Pin Number for PA17 */ 68 #define PORT_PA17 (_UL_(1) << 17) /**< \brief PORT Mask for PA17 */ 69 #define PIN_PA18 18 /**< \brief Pin Number for PA18 */ 70 #define PORT_PA18 (_UL_(1) << 18) /**< \brief PORT Mask for PA18 */ 71 #define PIN_PA19 19 /**< \brief Pin Number for PA19 */ 72 #define PORT_PA19 (_UL_(1) << 19) /**< \brief PORT Mask for PA19 */ 73 #define PIN_PA20 20 /**< \brief Pin Number for PA20 */ 74 #define PORT_PA20 (_UL_(1) << 20) /**< \brief PORT Mask for PA20 */ 75 #define PIN_PA21 21 /**< \brief Pin Number for PA21 */ 76 #define PORT_PA21 (_UL_(1) << 21) /**< \brief PORT Mask for PA21 */ 77 #define PIN_PA22 22 /**< \brief Pin Number for PA22 */ 78 #define PORT_PA22 (_UL_(1) << 22) /**< \brief PORT Mask for PA22 */ 79 #define PIN_PA23 23 /**< \brief Pin Number for PA23 */ 80 #define PORT_PA23 (_UL_(1) << 23) /**< \brief PORT Mask for PA23 */ 81 #define PIN_PA24 24 /**< \brief Pin Number for PA24 */ 82 #define PORT_PA24 (_UL_(1) << 24) /**< \brief PORT Mask for PA24 */ 83 #define PIN_PA25 25 /**< \brief Pin Number for PA25 */ 84 #define PORT_PA25 (_UL_(1) << 25) /**< \brief PORT Mask for PA25 */ 85 #define PIN_PA27 27 /**< \brief Pin Number for PA27 */ 86 #define PORT_PA27 (_UL_(1) << 27) /**< \brief PORT Mask for PA27 */ 87 #define PIN_PA28 28 /**< \brief Pin Number for PA28 */ 88 #define PORT_PA28 (_UL_(1) << 28) /**< \brief PORT Mask for PA28 */ 89 #define PIN_PA30 30 /**< \brief Pin Number for PA30 */ 90 #define PORT_PA30 (_UL_(1) << 30) /**< \brief PORT Mask for PA30 */ 91 #define PIN_PA31 31 /**< \brief Pin Number for PA31 */ 92 #define PORT_PA31 (_UL_(1) << 31) /**< \brief PORT Mask for PA31 */ 93 #define PIN_PB02 34 /**< \brief Pin Number for PB02 */ 94 #define PORT_PB02 (_UL_(1) << 2) /**< \brief PORT Mask for PB02 */ 95 #define PIN_PB03 35 /**< \brief Pin Number for PB03 */ 96 #define PORT_PB03 (_UL_(1) << 3) /**< \brief PORT Mask for PB03 */ 97 #define PIN_PB04 36 /**< \brief Pin Number for PB04 */ 98 #define PORT_PB04 (_UL_(1) << 4) /**< \brief PORT Mask for PB04 */ 99 #define PIN_PB08 40 /**< \brief Pin Number for PB08 */ 100 #define PORT_PB08 (_UL_(1) << 8) /**< \brief PORT Mask for PB08 */ 101 #define PIN_PB09 41 /**< \brief Pin Number for PB09 */ 102 #define PORT_PB09 (_UL_(1) << 9) /**< \brief PORT Mask for PB09 */ 103 /* ========== PORT definition for GCLK peripheral ========== */ 104 #define PIN_PA14H_GCLK_IO0 _L_(14) /**< \brief GCLK signal: IO0 on PA14 mux H */ 105 #define MUX_PA14H_GCLK_IO0 _L_(7) 106 #define PINMUX_PA14H_GCLK_IO0 ((PIN_PA14H_GCLK_IO0 << 16) | MUX_PA14H_GCLK_IO0) 107 #define PORT_PA14H_GCLK_IO0 (_UL_(1) << 14) 108 #define PIN_PA27H_GCLK_IO0 _L_(27) /**< \brief GCLK signal: IO0 on PA27 mux H */ 109 #define MUX_PA27H_GCLK_IO0 _L_(7) 110 #define PINMUX_PA27H_GCLK_IO0 ((PIN_PA27H_GCLK_IO0 << 16) | MUX_PA27H_GCLK_IO0) 111 #define PORT_PA27H_GCLK_IO0 (_UL_(1) << 27) 112 #define PIN_PA28H_GCLK_IO0 _L_(28) /**< \brief GCLK signal: IO0 on PA28 mux H */ 113 #define MUX_PA28H_GCLK_IO0 _L_(7) 114 #define PINMUX_PA28H_GCLK_IO0 ((PIN_PA28H_GCLK_IO0 << 16) | MUX_PA28H_GCLK_IO0) 115 #define PORT_PA28H_GCLK_IO0 (_UL_(1) << 28) 116 #define PIN_PA30H_GCLK_IO0 _L_(30) /**< \brief GCLK signal: IO0 on PA30 mux H */ 117 #define MUX_PA30H_GCLK_IO0 _L_(7) 118 #define PINMUX_PA30H_GCLK_IO0 ((PIN_PA30H_GCLK_IO0 << 16) | MUX_PA30H_GCLK_IO0) 119 #define PORT_PA30H_GCLK_IO0 (_UL_(1) << 30) 120 #define PIN_PA15H_GCLK_IO1 _L_(15) /**< \brief GCLK signal: IO1 on PA15 mux H */ 121 #define MUX_PA15H_GCLK_IO1 _L_(7) 122 #define PINMUX_PA15H_GCLK_IO1 ((PIN_PA15H_GCLK_IO1 << 16) | MUX_PA15H_GCLK_IO1) 123 #define PORT_PA15H_GCLK_IO1 (_UL_(1) << 15) 124 #define PIN_PA16H_GCLK_IO2 _L_(16) /**< \brief GCLK signal: IO2 on PA16 mux H */ 125 #define MUX_PA16H_GCLK_IO2 _L_(7) 126 #define PINMUX_PA16H_GCLK_IO2 ((PIN_PA16H_GCLK_IO2 << 16) | MUX_PA16H_GCLK_IO2) 127 #define PORT_PA16H_GCLK_IO2 (_UL_(1) << 16) 128 #define PIN_PA17H_GCLK_IO3 _L_(17) /**< \brief GCLK signal: IO3 on PA17 mux H */ 129 #define MUX_PA17H_GCLK_IO3 _L_(7) 130 #define PINMUX_PA17H_GCLK_IO3 ((PIN_PA17H_GCLK_IO3 << 16) | MUX_PA17H_GCLK_IO3) 131 #define PORT_PA17H_GCLK_IO3 (_UL_(1) << 17) 132 #define PIN_PA10H_GCLK_IO4 _L_(10) /**< \brief GCLK signal: IO4 on PA10 mux H */ 133 #define MUX_PA10H_GCLK_IO4 _L_(7) 134 #define PINMUX_PA10H_GCLK_IO4 ((PIN_PA10H_GCLK_IO4 << 16) | MUX_PA10H_GCLK_IO4) 135 #define PORT_PA10H_GCLK_IO4 (_UL_(1) << 10) 136 #define PIN_PA20H_GCLK_IO4 _L_(20) /**< \brief GCLK signal: IO4 on PA20 mux H */ 137 #define MUX_PA20H_GCLK_IO4 _L_(7) 138 #define PINMUX_PA20H_GCLK_IO4 ((PIN_PA20H_GCLK_IO4 << 16) | MUX_PA20H_GCLK_IO4) 139 #define PORT_PA20H_GCLK_IO4 (_UL_(1) << 20) 140 #define PIN_PA11H_GCLK_IO5 _L_(11) /**< \brief GCLK signal: IO5 on PA11 mux H */ 141 #define MUX_PA11H_GCLK_IO5 _L_(7) 142 #define PINMUX_PA11H_GCLK_IO5 ((PIN_PA11H_GCLK_IO5 << 16) | MUX_PA11H_GCLK_IO5) 143 #define PORT_PA11H_GCLK_IO5 (_UL_(1) << 11) 144 #define PIN_PA21H_GCLK_IO5 _L_(21) /**< \brief GCLK signal: IO5 on PA21 mux H */ 145 #define MUX_PA21H_GCLK_IO5 _L_(7) 146 #define PINMUX_PA21H_GCLK_IO5 ((PIN_PA21H_GCLK_IO5 << 16) | MUX_PA21H_GCLK_IO5) 147 #define PORT_PA21H_GCLK_IO5 (_UL_(1) << 21) 148 #define PIN_PA22H_GCLK_IO6 _L_(22) /**< \brief GCLK signal: IO6 on PA22 mux H */ 149 #define MUX_PA22H_GCLK_IO6 _L_(7) 150 #define PINMUX_PA22H_GCLK_IO6 ((PIN_PA22H_GCLK_IO6 << 16) | MUX_PA22H_GCLK_IO6) 151 #define PORT_PA22H_GCLK_IO6 (_UL_(1) << 22) 152 #define PIN_PA23H_GCLK_IO7 _L_(23) /**< \brief GCLK signal: IO7 on PA23 mux H */ 153 #define MUX_PA23H_GCLK_IO7 _L_(7) 154 #define PINMUX_PA23H_GCLK_IO7 ((PIN_PA23H_GCLK_IO7 << 16) | MUX_PA23H_GCLK_IO7) 155 #define PORT_PA23H_GCLK_IO7 (_UL_(1) << 23) 156 /* ========== PORT definition for EIC peripheral ========== */ 157 #define PIN_PA16A_EIC_EXTINT0 _L_(16) /**< \brief EIC signal: EXTINT0 on PA16 mux A */ 158 #define MUX_PA16A_EIC_EXTINT0 _L_(0) 159 #define PINMUX_PA16A_EIC_EXTINT0 ((PIN_PA16A_EIC_EXTINT0 << 16) | MUX_PA16A_EIC_EXTINT0) 160 #define PORT_PA16A_EIC_EXTINT0 (_UL_(1) << 16) 161 #define PIN_PA16A_EIC_EXTINT_NUM _L_(0) /**< \brief EIC signal: PIN_PA16 External Interrupt Line */ 162 #define PIN_PA00A_EIC_EXTINT0 _L_(0) /**< \brief EIC signal: EXTINT0 on PA00 mux A */ 163 #define MUX_PA00A_EIC_EXTINT0 _L_(0) 164 #define PINMUX_PA00A_EIC_EXTINT0 ((PIN_PA00A_EIC_EXTINT0 << 16) | MUX_PA00A_EIC_EXTINT0) 165 #define PORT_PA00A_EIC_EXTINT0 (_UL_(1) << 0) 166 #define PIN_PA00A_EIC_EXTINT_NUM _L_(0) /**< \brief EIC signal: PIN_PA00 External Interrupt Line */ 167 #define PIN_PA17A_EIC_EXTINT1 _L_(17) /**< \brief EIC signal: EXTINT1 on PA17 mux A */ 168 #define MUX_PA17A_EIC_EXTINT1 _L_(0) 169 #define PINMUX_PA17A_EIC_EXTINT1 ((PIN_PA17A_EIC_EXTINT1 << 16) | MUX_PA17A_EIC_EXTINT1) 170 #define PORT_PA17A_EIC_EXTINT1 (_UL_(1) << 17) 171 #define PIN_PA17A_EIC_EXTINT_NUM _L_(1) /**< \brief EIC signal: PIN_PA17 External Interrupt Line */ 172 #define PIN_PA01A_EIC_EXTINT1 _L_(1) /**< \brief EIC signal: EXTINT1 on PA01 mux A */ 173 #define MUX_PA01A_EIC_EXTINT1 _L_(0) 174 #define PINMUX_PA01A_EIC_EXTINT1 ((PIN_PA01A_EIC_EXTINT1 << 16) | MUX_PA01A_EIC_EXTINT1) 175 #define PORT_PA01A_EIC_EXTINT1 (_UL_(1) << 1) 176 #define PIN_PA01A_EIC_EXTINT_NUM _L_(1) /**< \brief EIC signal: PIN_PA01 External Interrupt Line */ 177 #define PIN_PA02A_EIC_EXTINT2 _L_(2) /**< \brief EIC signal: EXTINT2 on PA02 mux A */ 178 #define MUX_PA02A_EIC_EXTINT2 _L_(0) 179 #define PINMUX_PA02A_EIC_EXTINT2 ((PIN_PA02A_EIC_EXTINT2 << 16) | MUX_PA02A_EIC_EXTINT2) 180 #define PORT_PA02A_EIC_EXTINT2 (_UL_(1) << 2) 181 #define PIN_PA02A_EIC_EXTINT_NUM _L_(2) /**< \brief EIC signal: PIN_PA02 External Interrupt Line */ 182 #define PIN_PA18A_EIC_EXTINT2 _L_(18) /**< \brief EIC signal: EXTINT2 on PA18 mux A */ 183 #define MUX_PA18A_EIC_EXTINT2 _L_(0) 184 #define PINMUX_PA18A_EIC_EXTINT2 ((PIN_PA18A_EIC_EXTINT2 << 16) | MUX_PA18A_EIC_EXTINT2) 185 #define PORT_PA18A_EIC_EXTINT2 (_UL_(1) << 18) 186 #define PIN_PA18A_EIC_EXTINT_NUM _L_(2) /**< \brief EIC signal: PIN_PA18 External Interrupt Line */ 187 #define PIN_PB02A_EIC_EXTINT2 _L_(34) /**< \brief EIC signal: EXTINT2 on PB02 mux A */ 188 #define MUX_PB02A_EIC_EXTINT2 _L_(0) 189 #define PINMUX_PB02A_EIC_EXTINT2 ((PIN_PB02A_EIC_EXTINT2 << 16) | MUX_PB02A_EIC_EXTINT2) 190 #define PORT_PB02A_EIC_EXTINT2 (_UL_(1) << 2) 191 #define PIN_PB02A_EIC_EXTINT_NUM _L_(2) /**< \brief EIC signal: PIN_PB02 External Interrupt Line */ 192 #define PIN_PA03A_EIC_EXTINT3 _L_(3) /**< \brief EIC signal: EXTINT3 on PA03 mux A */ 193 #define MUX_PA03A_EIC_EXTINT3 _L_(0) 194 #define PINMUX_PA03A_EIC_EXTINT3 ((PIN_PA03A_EIC_EXTINT3 << 16) | MUX_PA03A_EIC_EXTINT3) 195 #define PORT_PA03A_EIC_EXTINT3 (_UL_(1) << 3) 196 #define PIN_PA03A_EIC_EXTINT_NUM _L_(3) /**< \brief EIC signal: PIN_PA03 External Interrupt Line */ 197 #define PIN_PA19A_EIC_EXTINT3 _L_(19) /**< \brief EIC signal: EXTINT3 on PA19 mux A */ 198 #define MUX_PA19A_EIC_EXTINT3 _L_(0) 199 #define PINMUX_PA19A_EIC_EXTINT3 ((PIN_PA19A_EIC_EXTINT3 << 16) | MUX_PA19A_EIC_EXTINT3) 200 #define PORT_PA19A_EIC_EXTINT3 (_UL_(1) << 19) 201 #define PIN_PA19A_EIC_EXTINT_NUM _L_(3) /**< \brief EIC signal: PIN_PA19 External Interrupt Line */ 202 #define PIN_PB03A_EIC_EXTINT3 _L_(35) /**< \brief EIC signal: EXTINT3 on PB03 mux A */ 203 #define MUX_PB03A_EIC_EXTINT3 _L_(0) 204 #define PINMUX_PB03A_EIC_EXTINT3 ((PIN_PB03A_EIC_EXTINT3 << 16) | MUX_PB03A_EIC_EXTINT3) 205 #define PORT_PB03A_EIC_EXTINT3 (_UL_(1) << 3) 206 #define PIN_PB03A_EIC_EXTINT_NUM _L_(3) /**< \brief EIC signal: PIN_PB03 External Interrupt Line */ 207 #define PIN_PA04A_EIC_EXTINT4 _L_(4) /**< \brief EIC signal: EXTINT4 on PA04 mux A */ 208 #define MUX_PA04A_EIC_EXTINT4 _L_(0) 209 #define PINMUX_PA04A_EIC_EXTINT4 ((PIN_PA04A_EIC_EXTINT4 << 16) | MUX_PA04A_EIC_EXTINT4) 210 #define PORT_PA04A_EIC_EXTINT4 (_UL_(1) << 4) 211 #define PIN_PA04A_EIC_EXTINT_NUM _L_(4) /**< \brief EIC signal: PIN_PA04 External Interrupt Line */ 212 #define PIN_PA20A_EIC_EXTINT4 _L_(20) /**< \brief EIC signal: EXTINT4 on PA20 mux A */ 213 #define MUX_PA20A_EIC_EXTINT4 _L_(0) 214 #define PINMUX_PA20A_EIC_EXTINT4 ((PIN_PA20A_EIC_EXTINT4 << 16) | MUX_PA20A_EIC_EXTINT4) 215 #define PORT_PA20A_EIC_EXTINT4 (_UL_(1) << 20) 216 #define PIN_PA20A_EIC_EXTINT_NUM _L_(4) /**< \brief EIC signal: PIN_PA20 External Interrupt Line */ 217 #define PIN_PB04A_EIC_EXTINT4 _L_(36) /**< \brief EIC signal: EXTINT4 on PB04 mux A */ 218 #define MUX_PB04A_EIC_EXTINT4 _L_(0) 219 #define PINMUX_PB04A_EIC_EXTINT4 ((PIN_PB04A_EIC_EXTINT4 << 16) | MUX_PB04A_EIC_EXTINT4) 220 #define PORT_PB04A_EIC_EXTINT4 (_UL_(1) << 4) 221 #define PIN_PB04A_EIC_EXTINT_NUM _L_(4) /**< \brief EIC signal: PIN_PB04 External Interrupt Line */ 222 #define PIN_PA05A_EIC_EXTINT5 _L_(5) /**< \brief EIC signal: EXTINT5 on PA05 mux A */ 223 #define MUX_PA05A_EIC_EXTINT5 _L_(0) 224 #define PINMUX_PA05A_EIC_EXTINT5 ((PIN_PA05A_EIC_EXTINT5 << 16) | MUX_PA05A_EIC_EXTINT5) 225 #define PORT_PA05A_EIC_EXTINT5 (_UL_(1) << 5) 226 #define PIN_PA05A_EIC_EXTINT_NUM _L_(5) /**< \brief EIC signal: PIN_PA05 External Interrupt Line */ 227 #define PIN_PA21A_EIC_EXTINT5 _L_(21) /**< \brief EIC signal: EXTINT5 on PA21 mux A */ 228 #define MUX_PA21A_EIC_EXTINT5 _L_(0) 229 #define PINMUX_PA21A_EIC_EXTINT5 ((PIN_PA21A_EIC_EXTINT5 << 16) | MUX_PA21A_EIC_EXTINT5) 230 #define PORT_PA21A_EIC_EXTINT5 (_UL_(1) << 21) 231 #define PIN_PA21A_EIC_EXTINT_NUM _L_(5) /**< \brief EIC signal: PIN_PA21 External Interrupt Line */ 232 #define PIN_PA06A_EIC_EXTINT6 _L_(6) /**< \brief EIC signal: EXTINT6 on PA06 mux A */ 233 #define MUX_PA06A_EIC_EXTINT6 _L_(0) 234 #define PINMUX_PA06A_EIC_EXTINT6 ((PIN_PA06A_EIC_EXTINT6 << 16) | MUX_PA06A_EIC_EXTINT6) 235 #define PORT_PA06A_EIC_EXTINT6 (_UL_(1) << 6) 236 #define PIN_PA06A_EIC_EXTINT_NUM _L_(6) /**< \brief EIC signal: PIN_PA06 External Interrupt Line */ 237 #define PIN_PA22A_EIC_EXTINT6 _L_(22) /**< \brief EIC signal: EXTINT6 on PA22 mux A */ 238 #define MUX_PA22A_EIC_EXTINT6 _L_(0) 239 #define PINMUX_PA22A_EIC_EXTINT6 ((PIN_PA22A_EIC_EXTINT6 << 16) | MUX_PA22A_EIC_EXTINT6) 240 #define PORT_PA22A_EIC_EXTINT6 (_UL_(1) << 22) 241 #define PIN_PA22A_EIC_EXTINT_NUM _L_(6) /**< \brief EIC signal: PIN_PA22 External Interrupt Line */ 242 #define PIN_PA07A_EIC_EXTINT7 _L_(7) /**< \brief EIC signal: EXTINT7 on PA07 mux A */ 243 #define MUX_PA07A_EIC_EXTINT7 _L_(0) 244 #define PINMUX_PA07A_EIC_EXTINT7 ((PIN_PA07A_EIC_EXTINT7 << 16) | MUX_PA07A_EIC_EXTINT7) 245 #define PORT_PA07A_EIC_EXTINT7 (_UL_(1) << 7) 246 #define PIN_PA07A_EIC_EXTINT_NUM _L_(7) /**< \brief EIC signal: PIN_PA07 External Interrupt Line */ 247 #define PIN_PA23A_EIC_EXTINT7 _L_(23) /**< \brief EIC signal: EXTINT7 on PA23 mux A */ 248 #define MUX_PA23A_EIC_EXTINT7 _L_(0) 249 #define PINMUX_PA23A_EIC_EXTINT7 ((PIN_PA23A_EIC_EXTINT7 << 16) | MUX_PA23A_EIC_EXTINT7) 250 #define PORT_PA23A_EIC_EXTINT7 (_UL_(1) << 23) 251 #define PIN_PA23A_EIC_EXTINT_NUM _L_(7) /**< \brief EIC signal: PIN_PA23 External Interrupt Line */ 252 #define PIN_PA28A_EIC_EXTINT8 _L_(28) /**< \brief EIC signal: EXTINT8 on PA28 mux A */ 253 #define MUX_PA28A_EIC_EXTINT8 _L_(0) 254 #define PINMUX_PA28A_EIC_EXTINT8 ((PIN_PA28A_EIC_EXTINT8 << 16) | MUX_PA28A_EIC_EXTINT8) 255 #define PORT_PA28A_EIC_EXTINT8 (_UL_(1) << 28) 256 #define PIN_PA28A_EIC_EXTINT_NUM _L_(8) /**< \brief EIC signal: PIN_PA28 External Interrupt Line */ 257 #define PIN_PB08A_EIC_EXTINT8 _L_(40) /**< \brief EIC signal: EXTINT8 on PB08 mux A */ 258 #define MUX_PB08A_EIC_EXTINT8 _L_(0) 259 #define PINMUX_PB08A_EIC_EXTINT8 ((PIN_PB08A_EIC_EXTINT8 << 16) | MUX_PB08A_EIC_EXTINT8) 260 #define PORT_PB08A_EIC_EXTINT8 (_UL_(1) << 8) 261 #define PIN_PB08A_EIC_EXTINT_NUM _L_(8) /**< \brief EIC signal: PIN_PB08 External Interrupt Line */ 262 #define PIN_PA09A_EIC_EXTINT9 _L_(9) /**< \brief EIC signal: EXTINT9 on PA09 mux A */ 263 #define MUX_PA09A_EIC_EXTINT9 _L_(0) 264 #define PINMUX_PA09A_EIC_EXTINT9 ((PIN_PA09A_EIC_EXTINT9 << 16) | MUX_PA09A_EIC_EXTINT9) 265 #define PORT_PA09A_EIC_EXTINT9 (_UL_(1) << 9) 266 #define PIN_PA09A_EIC_EXTINT_NUM _L_(9) /**< \brief EIC signal: PIN_PA09 External Interrupt Line */ 267 #define PIN_PB09A_EIC_EXTINT9 _L_(41) /**< \brief EIC signal: EXTINT9 on PB09 mux A */ 268 #define MUX_PB09A_EIC_EXTINT9 _L_(0) 269 #define PINMUX_PB09A_EIC_EXTINT9 ((PIN_PB09A_EIC_EXTINT9 << 16) | MUX_PB09A_EIC_EXTINT9) 270 #define PORT_PB09A_EIC_EXTINT9 (_UL_(1) << 9) 271 #define PIN_PB09A_EIC_EXTINT_NUM _L_(9) /**< \brief EIC signal: PIN_PB09 External Interrupt Line */ 272 #define PIN_PA10A_EIC_EXTINT10 _L_(10) /**< \brief EIC signal: EXTINT10 on PA10 mux A */ 273 #define MUX_PA10A_EIC_EXTINT10 _L_(0) 274 #define PINMUX_PA10A_EIC_EXTINT10 ((PIN_PA10A_EIC_EXTINT10 << 16) | MUX_PA10A_EIC_EXTINT10) 275 #define PORT_PA10A_EIC_EXTINT10 (_UL_(1) << 10) 276 #define PIN_PA10A_EIC_EXTINT_NUM _L_(10) /**< \brief EIC signal: PIN_PA10 External Interrupt Line */ 277 #define PIN_PA30A_EIC_EXTINT10 _L_(30) /**< \brief EIC signal: EXTINT10 on PA30 mux A */ 278 #define MUX_PA30A_EIC_EXTINT10 _L_(0) 279 #define PINMUX_PA30A_EIC_EXTINT10 ((PIN_PA30A_EIC_EXTINT10 << 16) | MUX_PA30A_EIC_EXTINT10) 280 #define PORT_PA30A_EIC_EXTINT10 (_UL_(1) << 30) 281 #define PIN_PA30A_EIC_EXTINT_NUM _L_(10) /**< \brief EIC signal: PIN_PA30 External Interrupt Line */ 282 #define PIN_PA11A_EIC_EXTINT11 _L_(11) /**< \brief EIC signal: EXTINT11 on PA11 mux A */ 283 #define MUX_PA11A_EIC_EXTINT11 _L_(0) 284 #define PINMUX_PA11A_EIC_EXTINT11 ((PIN_PA11A_EIC_EXTINT11 << 16) | MUX_PA11A_EIC_EXTINT11) 285 #define PORT_PA11A_EIC_EXTINT11 (_UL_(1) << 11) 286 #define PIN_PA11A_EIC_EXTINT_NUM _L_(11) /**< \brief EIC signal: PIN_PA11 External Interrupt Line */ 287 #define PIN_PA31A_EIC_EXTINT11 _L_(31) /**< \brief EIC signal: EXTINT11 on PA31 mux A */ 288 #define MUX_PA31A_EIC_EXTINT11 _L_(0) 289 #define PINMUX_PA31A_EIC_EXTINT11 ((PIN_PA31A_EIC_EXTINT11 << 16) | MUX_PA31A_EIC_EXTINT11) 290 #define PORT_PA31A_EIC_EXTINT11 (_UL_(1) << 31) 291 #define PIN_PA31A_EIC_EXTINT_NUM _L_(11) /**< \brief EIC signal: PIN_PA31 External Interrupt Line */ 292 #define PIN_PA12A_EIC_EXTINT12 _L_(12) /**< \brief EIC signal: EXTINT12 on PA12 mux A */ 293 #define MUX_PA12A_EIC_EXTINT12 _L_(0) 294 #define PINMUX_PA12A_EIC_EXTINT12 ((PIN_PA12A_EIC_EXTINT12 << 16) | MUX_PA12A_EIC_EXTINT12) 295 #define PORT_PA12A_EIC_EXTINT12 (_UL_(1) << 12) 296 #define PIN_PA12A_EIC_EXTINT_NUM _L_(12) /**< \brief EIC signal: PIN_PA12 External Interrupt Line */ 297 #define PIN_PA24A_EIC_EXTINT12 _L_(24) /**< \brief EIC signal: EXTINT12 on PA24 mux A */ 298 #define MUX_PA24A_EIC_EXTINT12 _L_(0) 299 #define PINMUX_PA24A_EIC_EXTINT12 ((PIN_PA24A_EIC_EXTINT12 << 16) | MUX_PA24A_EIC_EXTINT12) 300 #define PORT_PA24A_EIC_EXTINT12 (_UL_(1) << 24) 301 #define PIN_PA24A_EIC_EXTINT_NUM _L_(12) /**< \brief EIC signal: PIN_PA24 External Interrupt Line */ 302 #define PIN_PA13A_EIC_EXTINT13 _L_(13) /**< \brief EIC signal: EXTINT13 on PA13 mux A */ 303 #define MUX_PA13A_EIC_EXTINT13 _L_(0) 304 #define PINMUX_PA13A_EIC_EXTINT13 ((PIN_PA13A_EIC_EXTINT13 << 16) | MUX_PA13A_EIC_EXTINT13) 305 #define PORT_PA13A_EIC_EXTINT13 (_UL_(1) << 13) 306 #define PIN_PA13A_EIC_EXTINT_NUM _L_(13) /**< \brief EIC signal: PIN_PA13 External Interrupt Line */ 307 #define PIN_PA25A_EIC_EXTINT13 _L_(25) /**< \brief EIC signal: EXTINT13 on PA25 mux A */ 308 #define MUX_PA25A_EIC_EXTINT13 _L_(0) 309 #define PINMUX_PA25A_EIC_EXTINT13 ((PIN_PA25A_EIC_EXTINT13 << 16) | MUX_PA25A_EIC_EXTINT13) 310 #define PORT_PA25A_EIC_EXTINT13 (_UL_(1) << 25) 311 #define PIN_PA25A_EIC_EXTINT_NUM _L_(13) /**< \brief EIC signal: PIN_PA25 External Interrupt Line */ 312 #define PIN_PA14A_EIC_EXTINT14 _L_(14) /**< \brief EIC signal: EXTINT14 on PA14 mux A */ 313 #define MUX_PA14A_EIC_EXTINT14 _L_(0) 314 #define PINMUX_PA14A_EIC_EXTINT14 ((PIN_PA14A_EIC_EXTINT14 << 16) | MUX_PA14A_EIC_EXTINT14) 315 #define PORT_PA14A_EIC_EXTINT14 (_UL_(1) << 14) 316 #define PIN_PA14A_EIC_EXTINT_NUM _L_(14) /**< \brief EIC signal: PIN_PA14 External Interrupt Line */ 317 #define PIN_PA27A_EIC_EXTINT15 _L_(27) /**< \brief EIC signal: EXTINT15 on PA27 mux A */ 318 #define MUX_PA27A_EIC_EXTINT15 _L_(0) 319 #define PINMUX_PA27A_EIC_EXTINT15 ((PIN_PA27A_EIC_EXTINT15 << 16) | MUX_PA27A_EIC_EXTINT15) 320 #define PORT_PA27A_EIC_EXTINT15 (_UL_(1) << 27) 321 #define PIN_PA27A_EIC_EXTINT_NUM _L_(15) /**< \brief EIC signal: PIN_PA27 External Interrupt Line */ 322 #define PIN_PA15A_EIC_EXTINT15 _L_(15) /**< \brief EIC signal: EXTINT15 on PA15 mux A */ 323 #define MUX_PA15A_EIC_EXTINT15 _L_(0) 324 #define PINMUX_PA15A_EIC_EXTINT15 ((PIN_PA15A_EIC_EXTINT15 << 16) | MUX_PA15A_EIC_EXTINT15) 325 #define PORT_PA15A_EIC_EXTINT15 (_UL_(1) << 15) 326 #define PIN_PA15A_EIC_EXTINT_NUM _L_(15) /**< \brief EIC signal: PIN_PA15 External Interrupt Line */ 327 #define PIN_PA08A_EIC_NMI _L_(8) /**< \brief EIC signal: NMI on PA08 mux A */ 328 #define MUX_PA08A_EIC_NMI _L_(0) 329 #define PINMUX_PA08A_EIC_NMI ((PIN_PA08A_EIC_NMI << 16) | MUX_PA08A_EIC_NMI) 330 #define PORT_PA08A_EIC_NMI (_UL_(1) << 8) 331 /* ========== PORT definition for SERCOM0 peripheral ========== */ 332 #define PIN_PA04D_SERCOM0_PAD0 _L_(4) /**< \brief SERCOM0 signal: PAD0 on PA04 mux D */ 333 #define MUX_PA04D_SERCOM0_PAD0 _L_(3) 334 #define PINMUX_PA04D_SERCOM0_PAD0 ((PIN_PA04D_SERCOM0_PAD0 << 16) | MUX_PA04D_SERCOM0_PAD0) 335 #define PORT_PA04D_SERCOM0_PAD0 (_UL_(1) << 4) 336 #define PIN_PA08C_SERCOM0_PAD0 _L_(8) /**< \brief SERCOM0 signal: PAD0 on PA08 mux C */ 337 #define MUX_PA08C_SERCOM0_PAD0 _L_(2) 338 #define PINMUX_PA08C_SERCOM0_PAD0 ((PIN_PA08C_SERCOM0_PAD0 << 16) | MUX_PA08C_SERCOM0_PAD0) 339 #define PORT_PA08C_SERCOM0_PAD0 (_UL_(1) << 8) 340 #define PIN_PA05D_SERCOM0_PAD1 _L_(5) /**< \brief SERCOM0 signal: PAD1 on PA05 mux D */ 341 #define MUX_PA05D_SERCOM0_PAD1 _L_(3) 342 #define PINMUX_PA05D_SERCOM0_PAD1 ((PIN_PA05D_SERCOM0_PAD1 << 16) | MUX_PA05D_SERCOM0_PAD1) 343 #define PORT_PA05D_SERCOM0_PAD1 (_UL_(1) << 5) 344 #define PIN_PA09C_SERCOM0_PAD1 _L_(9) /**< \brief SERCOM0 signal: PAD1 on PA09 mux C */ 345 #define MUX_PA09C_SERCOM0_PAD1 _L_(2) 346 #define PINMUX_PA09C_SERCOM0_PAD1 ((PIN_PA09C_SERCOM0_PAD1 << 16) | MUX_PA09C_SERCOM0_PAD1) 347 #define PORT_PA09C_SERCOM0_PAD1 (_UL_(1) << 9) 348 #define PIN_PA06D_SERCOM0_PAD2 _L_(6) /**< \brief SERCOM0 signal: PAD2 on PA06 mux D */ 349 #define MUX_PA06D_SERCOM0_PAD2 _L_(3) 350 #define PINMUX_PA06D_SERCOM0_PAD2 ((PIN_PA06D_SERCOM0_PAD2 << 16) | MUX_PA06D_SERCOM0_PAD2) 351 #define PORT_PA06D_SERCOM0_PAD2 (_UL_(1) << 6) 352 #define PIN_PA10C_SERCOM0_PAD2 _L_(10) /**< \brief SERCOM0 signal: PAD2 on PA10 mux C */ 353 #define MUX_PA10C_SERCOM0_PAD2 _L_(2) 354 #define PINMUX_PA10C_SERCOM0_PAD2 ((PIN_PA10C_SERCOM0_PAD2 << 16) | MUX_PA10C_SERCOM0_PAD2) 355 #define PORT_PA10C_SERCOM0_PAD2 (_UL_(1) << 10) 356 #define PIN_PA07D_SERCOM0_PAD3 _L_(7) /**< \brief SERCOM0 signal: PAD3 on PA07 mux D */ 357 #define MUX_PA07D_SERCOM0_PAD3 _L_(3) 358 #define PINMUX_PA07D_SERCOM0_PAD3 ((PIN_PA07D_SERCOM0_PAD3 << 16) | MUX_PA07D_SERCOM0_PAD3) 359 #define PORT_PA07D_SERCOM0_PAD3 (_UL_(1) << 7) 360 #define PIN_PA11C_SERCOM0_PAD3 _L_(11) /**< \brief SERCOM0 signal: PAD3 on PA11 mux C */ 361 #define MUX_PA11C_SERCOM0_PAD3 _L_(2) 362 #define PINMUX_PA11C_SERCOM0_PAD3 ((PIN_PA11C_SERCOM0_PAD3 << 16) | MUX_PA11C_SERCOM0_PAD3) 363 #define PORT_PA11C_SERCOM0_PAD3 (_UL_(1) << 11) 364 /* ========== PORT definition for SERCOM1 peripheral ========== */ 365 #define PIN_PA16C_SERCOM1_PAD0 _L_(16) /**< \brief SERCOM1 signal: PAD0 on PA16 mux C */ 366 #define MUX_PA16C_SERCOM1_PAD0 _L_(2) 367 #define PINMUX_PA16C_SERCOM1_PAD0 ((PIN_PA16C_SERCOM1_PAD0 << 16) | MUX_PA16C_SERCOM1_PAD0) 368 #define PORT_PA16C_SERCOM1_PAD0 (_UL_(1) << 16) 369 #define PIN_PA00D_SERCOM1_PAD0 _L_(0) /**< \brief SERCOM1 signal: PAD0 on PA00 mux D */ 370 #define MUX_PA00D_SERCOM1_PAD0 _L_(3) 371 #define PINMUX_PA00D_SERCOM1_PAD0 ((PIN_PA00D_SERCOM1_PAD0 << 16) | MUX_PA00D_SERCOM1_PAD0) 372 #define PORT_PA00D_SERCOM1_PAD0 (_UL_(1) << 0) 373 #define PIN_PA17C_SERCOM1_PAD1 _L_(17) /**< \brief SERCOM1 signal: PAD1 on PA17 mux C */ 374 #define MUX_PA17C_SERCOM1_PAD1 _L_(2) 375 #define PINMUX_PA17C_SERCOM1_PAD1 ((PIN_PA17C_SERCOM1_PAD1 << 16) | MUX_PA17C_SERCOM1_PAD1) 376 #define PORT_PA17C_SERCOM1_PAD1 (_UL_(1) << 17) 377 #define PIN_PA01D_SERCOM1_PAD1 _L_(1) /**< \brief SERCOM1 signal: PAD1 on PA01 mux D */ 378 #define MUX_PA01D_SERCOM1_PAD1 _L_(3) 379 #define PINMUX_PA01D_SERCOM1_PAD1 ((PIN_PA01D_SERCOM1_PAD1 << 16) | MUX_PA01D_SERCOM1_PAD1) 380 #define PORT_PA01D_SERCOM1_PAD1 (_UL_(1) << 1) 381 #define PIN_PA30D_SERCOM1_PAD2 _L_(30) /**< \brief SERCOM1 signal: PAD2 on PA30 mux D */ 382 #define MUX_PA30D_SERCOM1_PAD2 _L_(3) 383 #define PINMUX_PA30D_SERCOM1_PAD2 ((PIN_PA30D_SERCOM1_PAD2 << 16) | MUX_PA30D_SERCOM1_PAD2) 384 #define PORT_PA30D_SERCOM1_PAD2 (_UL_(1) << 30) 385 #define PIN_PA18C_SERCOM1_PAD2 _L_(18) /**< \brief SERCOM1 signal: PAD2 on PA18 mux C */ 386 #define MUX_PA18C_SERCOM1_PAD2 _L_(2) 387 #define PINMUX_PA18C_SERCOM1_PAD2 ((PIN_PA18C_SERCOM1_PAD2 << 16) | MUX_PA18C_SERCOM1_PAD2) 388 #define PORT_PA18C_SERCOM1_PAD2 (_UL_(1) << 18) 389 #define PIN_PA31D_SERCOM1_PAD3 _L_(31) /**< \brief SERCOM1 signal: PAD3 on PA31 mux D */ 390 #define MUX_PA31D_SERCOM1_PAD3 _L_(3) 391 #define PINMUX_PA31D_SERCOM1_PAD3 ((PIN_PA31D_SERCOM1_PAD3 << 16) | MUX_PA31D_SERCOM1_PAD3) 392 #define PORT_PA31D_SERCOM1_PAD3 (_UL_(1) << 31) 393 #define PIN_PA19C_SERCOM1_PAD3 _L_(19) /**< \brief SERCOM1 signal: PAD3 on PA19 mux C */ 394 #define MUX_PA19C_SERCOM1_PAD3 _L_(2) 395 #define PINMUX_PA19C_SERCOM1_PAD3 ((PIN_PA19C_SERCOM1_PAD3 << 16) | MUX_PA19C_SERCOM1_PAD3) 396 #define PORT_PA19C_SERCOM1_PAD3 (_UL_(1) << 19) 397 /* ========== PORT definition for SERCOM2 peripheral ========== */ 398 #define PIN_PA08D_SERCOM2_PAD0 _L_(8) /**< \brief SERCOM2 signal: PAD0 on PA08 mux D */ 399 #define MUX_PA08D_SERCOM2_PAD0 _L_(3) 400 #define PINMUX_PA08D_SERCOM2_PAD0 ((PIN_PA08D_SERCOM2_PAD0 << 16) | MUX_PA08D_SERCOM2_PAD0) 401 #define PORT_PA08D_SERCOM2_PAD0 (_UL_(1) << 8) 402 #define PIN_PA12C_SERCOM2_PAD0 _L_(12) /**< \brief SERCOM2 signal: PAD0 on PA12 mux C */ 403 #define MUX_PA12C_SERCOM2_PAD0 _L_(2) 404 #define PINMUX_PA12C_SERCOM2_PAD0 ((PIN_PA12C_SERCOM2_PAD0 << 16) | MUX_PA12C_SERCOM2_PAD0) 405 #define PORT_PA12C_SERCOM2_PAD0 (_UL_(1) << 12) 406 #define PIN_PA09D_SERCOM2_PAD1 _L_(9) /**< \brief SERCOM2 signal: PAD1 on PA09 mux D */ 407 #define MUX_PA09D_SERCOM2_PAD1 _L_(3) 408 #define PINMUX_PA09D_SERCOM2_PAD1 ((PIN_PA09D_SERCOM2_PAD1 << 16) | MUX_PA09D_SERCOM2_PAD1) 409 #define PORT_PA09D_SERCOM2_PAD1 (_UL_(1) << 9) 410 #define PIN_PA13C_SERCOM2_PAD1 _L_(13) /**< \brief SERCOM2 signal: PAD1 on PA13 mux C */ 411 #define MUX_PA13C_SERCOM2_PAD1 _L_(2) 412 #define PINMUX_PA13C_SERCOM2_PAD1 ((PIN_PA13C_SERCOM2_PAD1 << 16) | MUX_PA13C_SERCOM2_PAD1) 413 #define PORT_PA13C_SERCOM2_PAD1 (_UL_(1) << 13) 414 #define PIN_PA10D_SERCOM2_PAD2 _L_(10) /**< \brief SERCOM2 signal: PAD2 on PA10 mux D */ 415 #define MUX_PA10D_SERCOM2_PAD2 _L_(3) 416 #define PINMUX_PA10D_SERCOM2_PAD2 ((PIN_PA10D_SERCOM2_PAD2 << 16) | MUX_PA10D_SERCOM2_PAD2) 417 #define PORT_PA10D_SERCOM2_PAD2 (_UL_(1) << 10) 418 #define PIN_PA14C_SERCOM2_PAD2 _L_(14) /**< \brief SERCOM2 signal: PAD2 on PA14 mux C */ 419 #define MUX_PA14C_SERCOM2_PAD2 _L_(2) 420 #define PINMUX_PA14C_SERCOM2_PAD2 ((PIN_PA14C_SERCOM2_PAD2 << 16) | MUX_PA14C_SERCOM2_PAD2) 421 #define PORT_PA14C_SERCOM2_PAD2 (_UL_(1) << 14) 422 #define PIN_PA11D_SERCOM2_PAD3 _L_(11) /**< \brief SERCOM2 signal: PAD3 on PA11 mux D */ 423 #define MUX_PA11D_SERCOM2_PAD3 _L_(3) 424 #define PINMUX_PA11D_SERCOM2_PAD3 ((PIN_PA11D_SERCOM2_PAD3 << 16) | MUX_PA11D_SERCOM2_PAD3) 425 #define PORT_PA11D_SERCOM2_PAD3 (_UL_(1) << 11) 426 #define PIN_PA15C_SERCOM2_PAD3 _L_(15) /**< \brief SERCOM2 signal: PAD3 on PA15 mux C */ 427 #define MUX_PA15C_SERCOM2_PAD3 _L_(2) 428 #define PINMUX_PA15C_SERCOM2_PAD3 ((PIN_PA15C_SERCOM2_PAD3 << 16) | MUX_PA15C_SERCOM2_PAD3) 429 #define PORT_PA15C_SERCOM2_PAD3 (_UL_(1) << 15) 430 /* ========== PORT definition for SERCOM3 peripheral ========== */ 431 #define PIN_PA16D_SERCOM3_PAD0 _L_(16) /**< \brief SERCOM3 signal: PAD0 on PA16 mux D */ 432 #define MUX_PA16D_SERCOM3_PAD0 _L_(3) 433 #define PINMUX_PA16D_SERCOM3_PAD0 ((PIN_PA16D_SERCOM3_PAD0 << 16) | MUX_PA16D_SERCOM3_PAD0) 434 #define PORT_PA16D_SERCOM3_PAD0 (_UL_(1) << 16) 435 #define PIN_PA22C_SERCOM3_PAD0 _L_(22) /**< \brief SERCOM3 signal: PAD0 on PA22 mux C */ 436 #define MUX_PA22C_SERCOM3_PAD0 _L_(2) 437 #define PINMUX_PA22C_SERCOM3_PAD0 ((PIN_PA22C_SERCOM3_PAD0 << 16) | MUX_PA22C_SERCOM3_PAD0) 438 #define PORT_PA22C_SERCOM3_PAD0 (_UL_(1) << 22) 439 #define PIN_PA17D_SERCOM3_PAD1 _L_(17) /**< \brief SERCOM3 signal: PAD1 on PA17 mux D */ 440 #define MUX_PA17D_SERCOM3_PAD1 _L_(3) 441 #define PINMUX_PA17D_SERCOM3_PAD1 ((PIN_PA17D_SERCOM3_PAD1 << 16) | MUX_PA17D_SERCOM3_PAD1) 442 #define PORT_PA17D_SERCOM3_PAD1 (_UL_(1) << 17) 443 #define PIN_PA23C_SERCOM3_PAD1 _L_(23) /**< \brief SERCOM3 signal: PAD1 on PA23 mux C */ 444 #define MUX_PA23C_SERCOM3_PAD1 _L_(2) 445 #define PINMUX_PA23C_SERCOM3_PAD1 ((PIN_PA23C_SERCOM3_PAD1 << 16) | MUX_PA23C_SERCOM3_PAD1) 446 #define PORT_PA23C_SERCOM3_PAD1 (_UL_(1) << 23) 447 #define PIN_PA18D_SERCOM3_PAD2 _L_(18) /**< \brief SERCOM3 signal: PAD2 on PA18 mux D */ 448 #define MUX_PA18D_SERCOM3_PAD2 _L_(3) 449 #define PINMUX_PA18D_SERCOM3_PAD2 ((PIN_PA18D_SERCOM3_PAD2 << 16) | MUX_PA18D_SERCOM3_PAD2) 450 #define PORT_PA18D_SERCOM3_PAD2 (_UL_(1) << 18) 451 #define PIN_PA20D_SERCOM3_PAD2 _L_(20) /**< \brief SERCOM3 signal: PAD2 on PA20 mux D */ 452 #define MUX_PA20D_SERCOM3_PAD2 _L_(3) 453 #define PINMUX_PA20D_SERCOM3_PAD2 ((PIN_PA20D_SERCOM3_PAD2 << 16) | MUX_PA20D_SERCOM3_PAD2) 454 #define PORT_PA20D_SERCOM3_PAD2 (_UL_(1) << 20) 455 #define PIN_PA24C_SERCOM3_PAD2 _L_(24) /**< \brief SERCOM3 signal: PAD2 on PA24 mux C */ 456 #define MUX_PA24C_SERCOM3_PAD2 _L_(2) 457 #define PINMUX_PA24C_SERCOM3_PAD2 ((PIN_PA24C_SERCOM3_PAD2 << 16) | MUX_PA24C_SERCOM3_PAD2) 458 #define PORT_PA24C_SERCOM3_PAD2 (_UL_(1) << 24) 459 #define PIN_PA19D_SERCOM3_PAD3 _L_(19) /**< \brief SERCOM3 signal: PAD3 on PA19 mux D */ 460 #define MUX_PA19D_SERCOM3_PAD3 _L_(3) 461 #define PINMUX_PA19D_SERCOM3_PAD3 ((PIN_PA19D_SERCOM3_PAD3 << 16) | MUX_PA19D_SERCOM3_PAD3) 462 #define PORT_PA19D_SERCOM3_PAD3 (_UL_(1) << 19) 463 #define PIN_PA21D_SERCOM3_PAD3 _L_(21) /**< \brief SERCOM3 signal: PAD3 on PA21 mux D */ 464 #define MUX_PA21D_SERCOM3_PAD3 _L_(3) 465 #define PINMUX_PA21D_SERCOM3_PAD3 ((PIN_PA21D_SERCOM3_PAD3 << 16) | MUX_PA21D_SERCOM3_PAD3) 466 #define PORT_PA21D_SERCOM3_PAD3 (_UL_(1) << 21) 467 #define PIN_PA25C_SERCOM3_PAD3 _L_(25) /**< \brief SERCOM3 signal: PAD3 on PA25 mux C */ 468 #define MUX_PA25C_SERCOM3_PAD3 _L_(2) 469 #define PINMUX_PA25C_SERCOM3_PAD3 ((PIN_PA25C_SERCOM3_PAD3 << 16) | MUX_PA25C_SERCOM3_PAD3) 470 #define PORT_PA25C_SERCOM3_PAD3 (_UL_(1) << 25) 471 /* ========== PORT definition for SERCOM4 peripheral ========== */ 472 #define PIN_PA12D_SERCOM4_PAD0 _L_(12) /**< \brief SERCOM4 signal: PAD0 on PA12 mux D */ 473 #define MUX_PA12D_SERCOM4_PAD0 _L_(3) 474 #define PINMUX_PA12D_SERCOM4_PAD0 ((PIN_PA12D_SERCOM4_PAD0 << 16) | MUX_PA12D_SERCOM4_PAD0) 475 #define PORT_PA12D_SERCOM4_PAD0 (_UL_(1) << 12) 476 #define PIN_PB08D_SERCOM4_PAD0 _L_(40) /**< \brief SERCOM4 signal: PAD0 on PB08 mux D */ 477 #define MUX_PB08D_SERCOM4_PAD0 _L_(3) 478 #define PINMUX_PB08D_SERCOM4_PAD0 ((PIN_PB08D_SERCOM4_PAD0 << 16) | MUX_PB08D_SERCOM4_PAD0) 479 #define PORT_PB08D_SERCOM4_PAD0 (_UL_(1) << 8) 480 #define PIN_PA13D_SERCOM4_PAD1 _L_(13) /**< \brief SERCOM4 signal: PAD1 on PA13 mux D */ 481 #define MUX_PA13D_SERCOM4_PAD1 _L_(3) 482 #define PINMUX_PA13D_SERCOM4_PAD1 ((PIN_PA13D_SERCOM4_PAD1 << 16) | MUX_PA13D_SERCOM4_PAD1) 483 #define PORT_PA13D_SERCOM4_PAD1 (_UL_(1) << 13) 484 #define PIN_PB09D_SERCOM4_PAD1 _L_(41) /**< \brief SERCOM4 signal: PAD1 on PB09 mux D */ 485 #define MUX_PB09D_SERCOM4_PAD1 _L_(3) 486 #define PINMUX_PB09D_SERCOM4_PAD1 ((PIN_PB09D_SERCOM4_PAD1 << 16) | MUX_PB09D_SERCOM4_PAD1) 487 #define PORT_PB09D_SERCOM4_PAD1 (_UL_(1) << 9) 488 #define PIN_PA14D_SERCOM4_PAD2 _L_(14) /**< \brief SERCOM4 signal: PAD2 on PA14 mux D */ 489 #define MUX_PA14D_SERCOM4_PAD2 _L_(3) 490 #define PINMUX_PA14D_SERCOM4_PAD2 ((PIN_PA14D_SERCOM4_PAD2 << 16) | MUX_PA14D_SERCOM4_PAD2) 491 #define PORT_PA14D_SERCOM4_PAD2 (_UL_(1) << 14) 492 #define PIN_PA15D_SERCOM4_PAD3 _L_(15) /**< \brief SERCOM4 signal: PAD3 on PA15 mux D */ 493 #define MUX_PA15D_SERCOM4_PAD3 _L_(3) 494 #define PINMUX_PA15D_SERCOM4_PAD3 ((PIN_PA15D_SERCOM4_PAD3 << 16) | MUX_PA15D_SERCOM4_PAD3) 495 #define PORT_PA15D_SERCOM4_PAD3 (_UL_(1) << 15) 496 /* ========== PORT definition for SERCOM5 peripheral ========== */ 497 #define PIN_PA22D_SERCOM5_PAD0 _L_(22) /**< \brief SERCOM5 signal: PAD0 on PA22 mux D */ 498 #define MUX_PA22D_SERCOM5_PAD0 _L_(3) 499 #define PINMUX_PA22D_SERCOM5_PAD0 ((PIN_PA22D_SERCOM5_PAD0 << 16) | MUX_PA22D_SERCOM5_PAD0) 500 #define PORT_PA22D_SERCOM5_PAD0 (_UL_(1) << 22) 501 #define PIN_PB02D_SERCOM5_PAD0 _L_(34) /**< \brief SERCOM5 signal: PAD0 on PB02 mux D */ 502 #define MUX_PB02D_SERCOM5_PAD0 _L_(3) 503 #define PINMUX_PB02D_SERCOM5_PAD0 ((PIN_PB02D_SERCOM5_PAD0 << 16) | MUX_PB02D_SERCOM5_PAD0) 504 #define PORT_PB02D_SERCOM5_PAD0 (_UL_(1) << 2) 505 #define PIN_PA23D_SERCOM5_PAD1 _L_(23) /**< \brief SERCOM5 signal: PAD1 on PA23 mux D */ 506 #define MUX_PA23D_SERCOM5_PAD1 _L_(3) 507 #define PINMUX_PA23D_SERCOM5_PAD1 ((PIN_PA23D_SERCOM5_PAD1 << 16) | MUX_PA23D_SERCOM5_PAD1) 508 #define PORT_PA23D_SERCOM5_PAD1 (_UL_(1) << 23) 509 #define PIN_PB03D_SERCOM5_PAD1 _L_(35) /**< \brief SERCOM5 signal: PAD1 on PB03 mux D */ 510 #define MUX_PB03D_SERCOM5_PAD1 _L_(3) 511 #define PINMUX_PB03D_SERCOM5_PAD1 ((PIN_PB03D_SERCOM5_PAD1 << 16) | MUX_PB03D_SERCOM5_PAD1) 512 #define PORT_PB03D_SERCOM5_PAD1 (_UL_(1) << 3) 513 #define PIN_PA24D_SERCOM5_PAD2 _L_(24) /**< \brief SERCOM5 signal: PAD2 on PA24 mux D */ 514 #define MUX_PA24D_SERCOM5_PAD2 _L_(3) 515 #define PINMUX_PA24D_SERCOM5_PAD2 ((PIN_PA24D_SERCOM5_PAD2 << 16) | MUX_PA24D_SERCOM5_PAD2) 516 #define PORT_PA24D_SERCOM5_PAD2 (_UL_(1) << 24) 517 #define PIN_PA20C_SERCOM5_PAD2 _L_(20) /**< \brief SERCOM5 signal: PAD2 on PA20 mux C */ 518 #define MUX_PA20C_SERCOM5_PAD2 _L_(2) 519 #define PINMUX_PA20C_SERCOM5_PAD2 ((PIN_PA20C_SERCOM5_PAD2 << 16) | MUX_PA20C_SERCOM5_PAD2) 520 #define PORT_PA20C_SERCOM5_PAD2 (_UL_(1) << 20) 521 #define PIN_PA25D_SERCOM5_PAD3 _L_(25) /**< \brief SERCOM5 signal: PAD3 on PA25 mux D */ 522 #define MUX_PA25D_SERCOM5_PAD3 _L_(3) 523 #define PINMUX_PA25D_SERCOM5_PAD3 ((PIN_PA25D_SERCOM5_PAD3 << 16) | MUX_PA25D_SERCOM5_PAD3) 524 #define PORT_PA25D_SERCOM5_PAD3 (_UL_(1) << 25) 525 #define PIN_PA21C_SERCOM5_PAD3 _L_(21) /**< \brief SERCOM5 signal: PAD3 on PA21 mux C */ 526 #define MUX_PA21C_SERCOM5_PAD3 _L_(2) 527 #define PINMUX_PA21C_SERCOM5_PAD3 ((PIN_PA21C_SERCOM5_PAD3 << 16) | MUX_PA21C_SERCOM5_PAD3) 528 #define PORT_PA21C_SERCOM5_PAD3 (_UL_(1) << 21) 529 /* ========== PORT definition for TC0 peripheral ========== */ 530 #define PIN_PA04F_TC0_WO0 _L_(4) /**< \brief TC0 signal: WO0 on PA04 mux F */ 531 #define MUX_PA04F_TC0_WO0 _L_(5) 532 #define PINMUX_PA04F_TC0_WO0 ((PIN_PA04F_TC0_WO0 << 16) | MUX_PA04F_TC0_WO0) 533 #define PORT_PA04F_TC0_WO0 (_UL_(1) << 4) 534 #define PIN_PA08E_TC0_WO0 _L_(8) /**< \brief TC0 signal: WO0 on PA08 mux E */ 535 #define MUX_PA08E_TC0_WO0 _L_(4) 536 #define PINMUX_PA08E_TC0_WO0 ((PIN_PA08E_TC0_WO0 << 16) | MUX_PA08E_TC0_WO0) 537 #define PORT_PA08E_TC0_WO0 (_UL_(1) << 8) 538 #define PIN_PA05F_TC0_WO1 _L_(5) /**< \brief TC0 signal: WO1 on PA05 mux F */ 539 #define MUX_PA05F_TC0_WO1 _L_(5) 540 #define PINMUX_PA05F_TC0_WO1 ((PIN_PA05F_TC0_WO1 << 16) | MUX_PA05F_TC0_WO1) 541 #define PORT_PA05F_TC0_WO1 (_UL_(1) << 5) 542 #define PIN_PA09E_TC0_WO1 _L_(9) /**< \brief TC0 signal: WO1 on PA09 mux E */ 543 #define MUX_PA09E_TC0_WO1 _L_(4) 544 #define PINMUX_PA09E_TC0_WO1 ((PIN_PA09E_TC0_WO1 << 16) | MUX_PA09E_TC0_WO1) 545 #define PORT_PA09E_TC0_WO1 (_UL_(1) << 9) 546 /* ========== PORT definition for TC1 peripheral ========== */ 547 #define PIN_PA06F_TC1_WO0 _L_(6) /**< \brief TC1 signal: WO0 on PA06 mux F */ 548 #define MUX_PA06F_TC1_WO0 _L_(5) 549 #define PINMUX_PA06F_TC1_WO0 ((PIN_PA06F_TC1_WO0 << 16) | MUX_PA06F_TC1_WO0) 550 #define PORT_PA06F_TC1_WO0 (_UL_(1) << 6) 551 #define PIN_PA30F_TC1_WO0 _L_(30) /**< \brief TC1 signal: WO0 on PA30 mux F */ 552 #define MUX_PA30F_TC1_WO0 _L_(5) 553 #define PINMUX_PA30F_TC1_WO0 ((PIN_PA30F_TC1_WO0 << 16) | MUX_PA30F_TC1_WO0) 554 #define PORT_PA30F_TC1_WO0 (_UL_(1) << 30) 555 #define PIN_PA10E_TC1_WO0 _L_(10) /**< \brief TC1 signal: WO0 on PA10 mux E */ 556 #define MUX_PA10E_TC1_WO0 _L_(4) 557 #define PINMUX_PA10E_TC1_WO0 ((PIN_PA10E_TC1_WO0 << 16) | MUX_PA10E_TC1_WO0) 558 #define PORT_PA10E_TC1_WO0 (_UL_(1) << 10) 559 #define PIN_PA07F_TC1_WO1 _L_(7) /**< \brief TC1 signal: WO1 on PA07 mux F */ 560 #define MUX_PA07F_TC1_WO1 _L_(5) 561 #define PINMUX_PA07F_TC1_WO1 ((PIN_PA07F_TC1_WO1 << 16) | MUX_PA07F_TC1_WO1) 562 #define PORT_PA07F_TC1_WO1 (_UL_(1) << 7) 563 #define PIN_PA31F_TC1_WO1 _L_(31) /**< \brief TC1 signal: WO1 on PA31 mux F */ 564 #define MUX_PA31F_TC1_WO1 _L_(5) 565 #define PINMUX_PA31F_TC1_WO1 ((PIN_PA31F_TC1_WO1 << 16) | MUX_PA31F_TC1_WO1) 566 #define PORT_PA31F_TC1_WO1 (_UL_(1) << 31) 567 #define PIN_PA11E_TC1_WO1 _L_(11) /**< \brief TC1 signal: WO1 on PA11 mux E */ 568 #define MUX_PA11E_TC1_WO1 _L_(4) 569 #define PINMUX_PA11E_TC1_WO1 ((PIN_PA11E_TC1_WO1 << 16) | MUX_PA11E_TC1_WO1) 570 #define PORT_PA11E_TC1_WO1 (_UL_(1) << 11) 571 /* ========== PORT definition for TC2 peripheral ========== */ 572 #define PIN_PA16F_TC2_WO0 _L_(16) /**< \brief TC2 signal: WO0 on PA16 mux F */ 573 #define MUX_PA16F_TC2_WO0 _L_(5) 574 #define PINMUX_PA16F_TC2_WO0 ((PIN_PA16F_TC2_WO0 << 16) | MUX_PA16F_TC2_WO0) 575 #define PORT_PA16F_TC2_WO0 (_UL_(1) << 16) 576 #define PIN_PA12E_TC2_WO0 _L_(12) /**< \brief TC2 signal: WO0 on PA12 mux E */ 577 #define MUX_PA12E_TC2_WO0 _L_(4) 578 #define PINMUX_PA12E_TC2_WO0 ((PIN_PA12E_TC2_WO0 << 16) | MUX_PA12E_TC2_WO0) 579 #define PORT_PA12E_TC2_WO0 (_UL_(1) << 12) 580 #define PIN_PA00F_TC2_WO0 _L_(0) /**< \brief TC2 signal: WO0 on PA00 mux F */ 581 #define MUX_PA00F_TC2_WO0 _L_(5) 582 #define PINMUX_PA00F_TC2_WO0 ((PIN_PA00F_TC2_WO0 << 16) | MUX_PA00F_TC2_WO0) 583 #define PORT_PA00F_TC2_WO0 (_UL_(1) << 0) 584 #define PIN_PA17F_TC2_WO1 _L_(17) /**< \brief TC2 signal: WO1 on PA17 mux F */ 585 #define MUX_PA17F_TC2_WO1 _L_(5) 586 #define PINMUX_PA17F_TC2_WO1 ((PIN_PA17F_TC2_WO1 << 16) | MUX_PA17F_TC2_WO1) 587 #define PORT_PA17F_TC2_WO1 (_UL_(1) << 17) 588 #define PIN_PA13E_TC2_WO1 _L_(13) /**< \brief TC2 signal: WO1 on PA13 mux E */ 589 #define MUX_PA13E_TC2_WO1 _L_(4) 590 #define PINMUX_PA13E_TC2_WO1 ((PIN_PA13E_TC2_WO1 << 16) | MUX_PA13E_TC2_WO1) 591 #define PORT_PA13E_TC2_WO1 (_UL_(1) << 13) 592 #define PIN_PA01F_TC2_WO1 _L_(1) /**< \brief TC2 signal: WO1 on PA01 mux F */ 593 #define MUX_PA01F_TC2_WO1 _L_(5) 594 #define PINMUX_PA01F_TC2_WO1 ((PIN_PA01F_TC2_WO1 << 16) | MUX_PA01F_TC2_WO1) 595 #define PORT_PA01F_TC2_WO1 (_UL_(1) << 1) 596 /* ========== PORT definition for TC3 peripheral ========== */ 597 #define PIN_PA18F_TC3_WO0 _L_(18) /**< \brief TC3 signal: WO0 on PA18 mux F */ 598 #define MUX_PA18F_TC3_WO0 _L_(5) 599 #define PINMUX_PA18F_TC3_WO0 ((PIN_PA18F_TC3_WO0 << 16) | MUX_PA18F_TC3_WO0) 600 #define PORT_PA18F_TC3_WO0 (_UL_(1) << 18) 601 #define PIN_PA14E_TC3_WO0 _L_(14) /**< \brief TC3 signal: WO0 on PA14 mux E */ 602 #define MUX_PA14E_TC3_WO0 _L_(4) 603 #define PINMUX_PA14E_TC3_WO0 ((PIN_PA14E_TC3_WO0 << 16) | MUX_PA14E_TC3_WO0) 604 #define PORT_PA14E_TC3_WO0 (_UL_(1) << 14) 605 #define PIN_PA19F_TC3_WO1 _L_(19) /**< \brief TC3 signal: WO1 on PA19 mux F */ 606 #define MUX_PA19F_TC3_WO1 _L_(5) 607 #define PINMUX_PA19F_TC3_WO1 ((PIN_PA19F_TC3_WO1 << 16) | MUX_PA19F_TC3_WO1) 608 #define PORT_PA19F_TC3_WO1 (_UL_(1) << 19) 609 #define PIN_PA15E_TC3_WO1 _L_(15) /**< \brief TC3 signal: WO1 on PA15 mux E */ 610 #define MUX_PA15E_TC3_WO1 _L_(4) 611 #define PINMUX_PA15E_TC3_WO1 ((PIN_PA15E_TC3_WO1 << 16) | MUX_PA15E_TC3_WO1) 612 #define PORT_PA15E_TC3_WO1 (_UL_(1) << 15) 613 /* ========== PORT definition for TC4 peripheral ========== */ 614 #define PIN_PA22F_TC4_WO0 _L_(22) /**< \brief TC4 signal: WO0 on PA22 mux F */ 615 #define MUX_PA22F_TC4_WO0 _L_(5) 616 #define PINMUX_PA22F_TC4_WO0 ((PIN_PA22F_TC4_WO0 << 16) | MUX_PA22F_TC4_WO0) 617 #define PORT_PA22F_TC4_WO0 (_UL_(1) << 22) 618 #define PIN_PB08F_TC4_WO0 _L_(40) /**< \brief TC4 signal: WO0 on PB08 mux F */ 619 #define MUX_PB08F_TC4_WO0 _L_(5) 620 #define PINMUX_PB08F_TC4_WO0 ((PIN_PB08F_TC4_WO0 << 16) | MUX_PB08F_TC4_WO0) 621 #define PORT_PB08F_TC4_WO0 (_UL_(1) << 8) 622 #define PIN_PA23F_TC4_WO1 _L_(23) /**< \brief TC4 signal: WO1 on PA23 mux F */ 623 #define MUX_PA23F_TC4_WO1 _L_(5) 624 #define PINMUX_PA23F_TC4_WO1 ((PIN_PA23F_TC4_WO1 << 16) | MUX_PA23F_TC4_WO1) 625 #define PORT_PA23F_TC4_WO1 (_UL_(1) << 23) 626 #define PIN_PB09F_TC4_WO1 _L_(41) /**< \brief TC4 signal: WO1 on PB09 mux F */ 627 #define MUX_PB09F_TC4_WO1 _L_(5) 628 #define PINMUX_PB09F_TC4_WO1 ((PIN_PB09F_TC4_WO1 << 16) | MUX_PB09F_TC4_WO1) 629 #define PORT_PB09F_TC4_WO1 (_UL_(1) << 9) 630 /* ========== PORT definition for TC5 peripheral ========== */ 631 #define PIN_PA24F_TC5_WO0 _L_(24) /**< \brief TC5 signal: WO0 on PA24 mux F */ 632 #define MUX_PA24F_TC5_WO0 _L_(5) 633 #define PINMUX_PA24F_TC5_WO0 ((PIN_PA24F_TC5_WO0 << 16) | MUX_PA24F_TC5_WO0) 634 #define PORT_PA24F_TC5_WO0 (_UL_(1) << 24) 635 #define PIN_PA25F_TC5_WO1 _L_(25) /**< \brief TC5 signal: WO1 on PA25 mux F */ 636 #define MUX_PA25F_TC5_WO1 _L_(5) 637 #define PINMUX_PA25F_TC5_WO1 ((PIN_PA25F_TC5_WO1 << 16) | MUX_PA25F_TC5_WO1) 638 #define PORT_PA25F_TC5_WO1 (_UL_(1) << 25) 639 /* ========== PORT definition for ADC peripheral ========== */ 640 #define PIN_PA02B_ADC_AIN0 _L_(2) /**< \brief ADC signal: AIN0 on PA02 mux B */ 641 #define MUX_PA02B_ADC_AIN0 _L_(1) 642 #define PINMUX_PA02B_ADC_AIN0 ((PIN_PA02B_ADC_AIN0 << 16) | MUX_PA02B_ADC_AIN0) 643 #define PORT_PA02B_ADC_AIN0 (_UL_(1) << 2) 644 #define PIN_PA03B_ADC_AIN1 _L_(3) /**< \brief ADC signal: AIN1 on PA03 mux B */ 645 #define MUX_PA03B_ADC_AIN1 _L_(1) 646 #define PINMUX_PA03B_ADC_AIN1 ((PIN_PA03B_ADC_AIN1 << 16) | MUX_PA03B_ADC_AIN1) 647 #define PORT_PA03B_ADC_AIN1 (_UL_(1) << 3) 648 #define PIN_PB08B_ADC_AIN2 _L_(40) /**< \brief ADC signal: AIN2 on PB08 mux B */ 649 #define MUX_PB08B_ADC_AIN2 _L_(1) 650 #define PINMUX_PB08B_ADC_AIN2 ((PIN_PB08B_ADC_AIN2 << 16) | MUX_PB08B_ADC_AIN2) 651 #define PORT_PB08B_ADC_AIN2 (_UL_(1) << 8) 652 #define PIN_PB09B_ADC_AIN3 _L_(41) /**< \brief ADC signal: AIN3 on PB09 mux B */ 653 #define MUX_PB09B_ADC_AIN3 _L_(1) 654 #define PINMUX_PB09B_ADC_AIN3 ((PIN_PB09B_ADC_AIN3 << 16) | MUX_PB09B_ADC_AIN3) 655 #define PORT_PB09B_ADC_AIN3 (_UL_(1) << 9) 656 #define PIN_PA04B_ADC_AIN4 _L_(4) /**< \brief ADC signal: AIN4 on PA04 mux B */ 657 #define MUX_PA04B_ADC_AIN4 _L_(1) 658 #define PINMUX_PA04B_ADC_AIN4 ((PIN_PA04B_ADC_AIN4 << 16) | MUX_PA04B_ADC_AIN4) 659 #define PORT_PA04B_ADC_AIN4 (_UL_(1) << 4) 660 #define PIN_PA05B_ADC_AIN5 _L_(5) /**< \brief ADC signal: AIN5 on PA05 mux B */ 661 #define MUX_PA05B_ADC_AIN5 _L_(1) 662 #define PINMUX_PA05B_ADC_AIN5 ((PIN_PA05B_ADC_AIN5 << 16) | MUX_PA05B_ADC_AIN5) 663 #define PORT_PA05B_ADC_AIN5 (_UL_(1) << 5) 664 #define PIN_PA06B_ADC_AIN6 _L_(6) /**< \brief ADC signal: AIN6 on PA06 mux B */ 665 #define MUX_PA06B_ADC_AIN6 _L_(1) 666 #define PINMUX_PA06B_ADC_AIN6 ((PIN_PA06B_ADC_AIN6 << 16) | MUX_PA06B_ADC_AIN6) 667 #define PORT_PA06B_ADC_AIN6 (_UL_(1) << 6) 668 #define PIN_PA07B_ADC_AIN7 _L_(7) /**< \brief ADC signal: AIN7 on PA07 mux B */ 669 #define MUX_PA07B_ADC_AIN7 _L_(1) 670 #define PINMUX_PA07B_ADC_AIN7 ((PIN_PA07B_ADC_AIN7 << 16) | MUX_PA07B_ADC_AIN7) 671 #define PORT_PA07B_ADC_AIN7 (_UL_(1) << 7) 672 #define PIN_PB02B_ADC_AIN10 _L_(34) /**< \brief ADC signal: AIN10 on PB02 mux B */ 673 #define MUX_PB02B_ADC_AIN10 _L_(1) 674 #define PINMUX_PB02B_ADC_AIN10 ((PIN_PB02B_ADC_AIN10 << 16) | MUX_PB02B_ADC_AIN10) 675 #define PORT_PB02B_ADC_AIN10 (_UL_(1) << 2) 676 #define PIN_PB03B_ADC_AIN11 _L_(35) /**< \brief ADC signal: AIN11 on PB03 mux B */ 677 #define MUX_PB03B_ADC_AIN11 _L_(1) 678 #define PINMUX_PB03B_ADC_AIN11 ((PIN_PB03B_ADC_AIN11 << 16) | MUX_PB03B_ADC_AIN11) 679 #define PORT_PB03B_ADC_AIN11 (_UL_(1) << 3) 680 #define PIN_PB04B_ADC_AIN12 _L_(36) /**< \brief ADC signal: AIN12 on PB04 mux B */ 681 #define MUX_PB04B_ADC_AIN12 _L_(1) 682 #define PINMUX_PB04B_ADC_AIN12 ((PIN_PB04B_ADC_AIN12 << 16) | MUX_PB04B_ADC_AIN12) 683 #define PORT_PB04B_ADC_AIN12 (_UL_(1) << 4) 684 #define PIN_PA08B_ADC_AIN16 _L_(8) /**< \brief ADC signal: AIN16 on PA08 mux B */ 685 #define MUX_PA08B_ADC_AIN16 _L_(1) 686 #define PINMUX_PA08B_ADC_AIN16 ((PIN_PA08B_ADC_AIN16 << 16) | MUX_PA08B_ADC_AIN16) 687 #define PORT_PA08B_ADC_AIN16 (_UL_(1) << 8) 688 #define PIN_PA09B_ADC_AIN17 _L_(9) /**< \brief ADC signal: AIN17 on PA09 mux B */ 689 #define MUX_PA09B_ADC_AIN17 _L_(1) 690 #define PINMUX_PA09B_ADC_AIN17 ((PIN_PA09B_ADC_AIN17 << 16) | MUX_PA09B_ADC_AIN17) 691 #define PORT_PA09B_ADC_AIN17 (_UL_(1) << 9) 692 #define PIN_PA10B_ADC_AIN18 _L_(10) /**< \brief ADC signal: AIN18 on PA10 mux B */ 693 #define MUX_PA10B_ADC_AIN18 _L_(1) 694 #define PINMUX_PA10B_ADC_AIN18 ((PIN_PA10B_ADC_AIN18 << 16) | MUX_PA10B_ADC_AIN18) 695 #define PORT_PA10B_ADC_AIN18 (_UL_(1) << 10) 696 #define PIN_PA11B_ADC_AIN19 _L_(11) /**< \brief ADC signal: AIN19 on PA11 mux B */ 697 #define MUX_PA11B_ADC_AIN19 _L_(1) 698 #define PINMUX_PA11B_ADC_AIN19 ((PIN_PA11B_ADC_AIN19 << 16) | MUX_PA11B_ADC_AIN19) 699 #define PORT_PA11B_ADC_AIN19 (_UL_(1) << 11) 700 #define PIN_PA04B_ADC_VREFP _L_(4) /**< \brief ADC signal: VREFP on PA04 mux B */ 701 #define MUX_PA04B_ADC_VREFP _L_(1) 702 #define PINMUX_PA04B_ADC_VREFP ((PIN_PA04B_ADC_VREFP << 16) | MUX_PA04B_ADC_VREFP) 703 #define PORT_PA04B_ADC_VREFP (_UL_(1) << 4) 704 /* ========== PORT definition for AC peripheral ========== */ 705 #define PIN_PA04B_AC_AIN0 _L_(4) /**< \brief AC signal: AIN0 on PA04 mux B */ 706 #define MUX_PA04B_AC_AIN0 _L_(1) 707 #define PINMUX_PA04B_AC_AIN0 ((PIN_PA04B_AC_AIN0 << 16) | MUX_PA04B_AC_AIN0) 708 #define PORT_PA04B_AC_AIN0 (_UL_(1) << 4) 709 #define PIN_PA05B_AC_AIN1 _L_(5) /**< \brief AC signal: AIN1 on PA05 mux B */ 710 #define MUX_PA05B_AC_AIN1 _L_(1) 711 #define PINMUX_PA05B_AC_AIN1 ((PIN_PA05B_AC_AIN1 << 16) | MUX_PA05B_AC_AIN1) 712 #define PORT_PA05B_AC_AIN1 (_UL_(1) << 5) 713 #define PIN_PA06B_AC_AIN2 _L_(6) /**< \brief AC signal: AIN2 on PA06 mux B */ 714 #define MUX_PA06B_AC_AIN2 _L_(1) 715 #define PINMUX_PA06B_AC_AIN2 ((PIN_PA06B_AC_AIN2 << 16) | MUX_PA06B_AC_AIN2) 716 #define PORT_PA06B_AC_AIN2 (_UL_(1) << 6) 717 #define PIN_PA07B_AC_AIN3 _L_(7) /**< \brief AC signal: AIN3 on PA07 mux B */ 718 #define MUX_PA07B_AC_AIN3 _L_(1) 719 #define PINMUX_PA07B_AC_AIN3 ((PIN_PA07B_AC_AIN3 << 16) | MUX_PA07B_AC_AIN3) 720 #define PORT_PA07B_AC_AIN3 (_UL_(1) << 7) 721 #define PIN_PA12H_AC_CMP0 _L_(12) /**< \brief AC signal: CMP0 on PA12 mux H */ 722 #define MUX_PA12H_AC_CMP0 _L_(7) 723 #define PINMUX_PA12H_AC_CMP0 ((PIN_PA12H_AC_CMP0 << 16) | MUX_PA12H_AC_CMP0) 724 #define PORT_PA12H_AC_CMP0 (_UL_(1) << 12) 725 #define PIN_PA18H_AC_CMP0 _L_(18) /**< \brief AC signal: CMP0 on PA18 mux H */ 726 #define MUX_PA18H_AC_CMP0 _L_(7) 727 #define PINMUX_PA18H_AC_CMP0 ((PIN_PA18H_AC_CMP0 << 16) | MUX_PA18H_AC_CMP0) 728 #define PORT_PA18H_AC_CMP0 (_UL_(1) << 18) 729 #define PIN_PA13H_AC_CMP1 _L_(13) /**< \brief AC signal: CMP1 on PA13 mux H */ 730 #define MUX_PA13H_AC_CMP1 _L_(7) 731 #define PINMUX_PA13H_AC_CMP1 ((PIN_PA13H_AC_CMP1 << 16) | MUX_PA13H_AC_CMP1) 732 #define PORT_PA13H_AC_CMP1 (_UL_(1) << 13) 733 #define PIN_PA19H_AC_CMP1 _L_(19) /**< \brief AC signal: CMP1 on PA19 mux H */ 734 #define MUX_PA19H_AC_CMP1 _L_(7) 735 #define PINMUX_PA19H_AC_CMP1 ((PIN_PA19H_AC_CMP1 << 16) | MUX_PA19H_AC_CMP1) 736 #define PORT_PA19H_AC_CMP1 (_UL_(1) << 19) 737 /* ========== PORT definition for DAC peripheral ========== */ 738 #define PIN_PA02B_DAC_VOUT _L_(2) /**< \brief DAC signal: VOUT on PA02 mux B */ 739 #define MUX_PA02B_DAC_VOUT _L_(1) 740 #define PINMUX_PA02B_DAC_VOUT ((PIN_PA02B_DAC_VOUT << 16) | MUX_PA02B_DAC_VOUT) 741 #define PORT_PA02B_DAC_VOUT (_UL_(1) << 2) 742 #define PIN_PA03B_DAC_VREFP _L_(3) /**< \brief DAC signal: VREFP on PA03 mux B */ 743 #define MUX_PA03B_DAC_VREFP _L_(1) 744 #define PINMUX_PA03B_DAC_VREFP ((PIN_PA03B_DAC_VREFP << 16) | MUX_PA03B_DAC_VREFP) 745 #define PORT_PA03B_DAC_VREFP (_UL_(1) << 3) 746 747 #endif /* _SAMD20G18U_PIO_ */ 748