rc

Dependents:   WizFi250_AP_HelloWorld

Fork of mbed-src by DongEun Koak

Committer:
mbed_official
Date:
Wed Jul 01 09:45:11 2015 +0100
Revision:
582:53297373a894
Child:
595:a274ee790e56
Synchronized with git revision d5b4d2ab9c47edb4dc5776e7177b0c2263459081

Full URL: https://github.com/mbedmicro/mbed/commit/d5b4d2ab9c47edb4dc5776e7177b0c2263459081/

Initial version of drivers for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 582:53297373a894 1 /**
mbed_official 582:53297373a894 2 * \file
mbed_official 582:53297373a894 3 *
mbed_official 582:53297373a894 4 * \brief Atmel part identification macros
mbed_official 582:53297373a894 5 *
mbed_official 582:53297373a894 6 * Copyright (C) 2012-2014 Atmel Corporation. All rights reserved.
mbed_official 582:53297373a894 7 *
mbed_official 582:53297373a894 8 * \asf_license_start
mbed_official 582:53297373a894 9 *
mbed_official 582:53297373a894 10 * \page License
mbed_official 582:53297373a894 11 *
mbed_official 582:53297373a894 12 * Redistribution and use in source and binary forms, with or without
mbed_official 582:53297373a894 13 * modification, are permitted provided that the following conditions are met:
mbed_official 582:53297373a894 14 *
mbed_official 582:53297373a894 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 582:53297373a894 16 * this list of conditions and the following disclaimer.
mbed_official 582:53297373a894 17 *
mbed_official 582:53297373a894 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 582:53297373a894 19 * this list of conditions and the following disclaimer in the documentation
mbed_official 582:53297373a894 20 * and/or other materials provided with the distribution.
mbed_official 582:53297373a894 21 *
mbed_official 582:53297373a894 22 * 3. The name of Atmel may not be used to endorse or promote products derived
mbed_official 582:53297373a894 23 * from this software without specific prior written permission.
mbed_official 582:53297373a894 24 *
mbed_official 582:53297373a894 25 * 4. This software may only be redistributed and used in connection with an
mbed_official 582:53297373a894 26 * Atmel microcontroller product.
mbed_official 582:53297373a894 27 *
mbed_official 582:53297373a894 28 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
mbed_official 582:53297373a894 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
mbed_official 582:53297373a894 30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
mbed_official 582:53297373a894 31 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
mbed_official 582:53297373a894 32 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 582:53297373a894 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
mbed_official 582:53297373a894 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
mbed_official 582:53297373a894 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
mbed_official 582:53297373a894 36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
mbed_official 582:53297373a894 37 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
mbed_official 582:53297373a894 38 * POSSIBILITY OF SUCH DAMAGE.
mbed_official 582:53297373a894 39 *
mbed_official 582:53297373a894 40 * \asf_license_stop
mbed_official 582:53297373a894 41 *
mbed_official 582:53297373a894 42 */
mbed_official 582:53297373a894 43 /**
mbed_official 582:53297373a894 44 * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
mbed_official 582:53297373a894 45 */
mbed_official 582:53297373a894 46
mbed_official 582:53297373a894 47 #ifndef ATMEL_PARTS_H
mbed_official 582:53297373a894 48 #define ATMEL_PARTS_H
mbed_official 582:53297373a894 49
mbed_official 582:53297373a894 50 /**
mbed_official 582:53297373a894 51 * \defgroup part_macros_group Atmel part identification macros
mbed_official 582:53297373a894 52 *
mbed_official 582:53297373a894 53 * This collection of macros identify which series and families that the various
mbed_official 582:53297373a894 54 * Atmel parts belong to. These can be used to select part-dependent sections of
mbed_official 582:53297373a894 55 * code at compile time.
mbed_official 582:53297373a894 56 *
mbed_official 582:53297373a894 57 * @{
mbed_official 582:53297373a894 58 */
mbed_official 582:53297373a894 59
mbed_official 582:53297373a894 60 /**
mbed_official 582:53297373a894 61 * \name Convenience macros for part checking
mbed_official 582:53297373a894 62 * @{
mbed_official 582:53297373a894 63 */
mbed_official 582:53297373a894 64 /* ! Check GCC and IAR part definition for 8-bit AVR */
mbed_official 582:53297373a894 65 #define AVR8_PART_IS_DEFINED(part) \
mbed_official 582:53297373a894 66 (defined(__ ## part ## __) || defined(__AVR_ ## part ## __))
mbed_official 582:53297373a894 67
mbed_official 582:53297373a894 68 /* ! Check GCC and IAR part definition for 32-bit AVR */
mbed_official 582:53297373a894 69 #define AVR32_PART_IS_DEFINED(part) \
mbed_official 582:53297373a894 70 (defined(__AT32 ## part ## __) || defined(__AVR32_ ## part ## __))
mbed_official 582:53297373a894 71
mbed_official 582:53297373a894 72 /* ! Check GCC and IAR part definition for SAM */
mbed_official 582:53297373a894 73 #define SAM_PART_IS_DEFINED(part) (defined(__ ## part ## __))
mbed_official 582:53297373a894 74 /** @} */
mbed_official 582:53297373a894 75
mbed_official 582:53297373a894 76 /**
mbed_official 582:53297373a894 77 * \defgroup uc3_part_macros_group AVR UC3 parts
mbed_official 582:53297373a894 78 * @{
mbed_official 582:53297373a894 79 */
mbed_official 582:53297373a894 80
mbed_official 582:53297373a894 81 /**
mbed_official 582:53297373a894 82 * \name AVR UC3 A series
mbed_official 582:53297373a894 83 * @{
mbed_official 582:53297373a894 84 */
mbed_official 582:53297373a894 85 #define UC3A0 ( \
mbed_official 582:53297373a894 86 AVR32_PART_IS_DEFINED(UC3A0128) || \
mbed_official 582:53297373a894 87 AVR32_PART_IS_DEFINED(UC3A0256) || \
mbed_official 582:53297373a894 88 AVR32_PART_IS_DEFINED(UC3A0512) \
mbed_official 582:53297373a894 89 )
mbed_official 582:53297373a894 90
mbed_official 582:53297373a894 91 #define UC3A1 ( \
mbed_official 582:53297373a894 92 AVR32_PART_IS_DEFINED(UC3A1128) || \
mbed_official 582:53297373a894 93 AVR32_PART_IS_DEFINED(UC3A1256) || \
mbed_official 582:53297373a894 94 AVR32_PART_IS_DEFINED(UC3A1512) \
mbed_official 582:53297373a894 95 )
mbed_official 582:53297373a894 96
mbed_official 582:53297373a894 97 #define UC3A3 ( \
mbed_official 582:53297373a894 98 AVR32_PART_IS_DEFINED(UC3A364) || \
mbed_official 582:53297373a894 99 AVR32_PART_IS_DEFINED(UC3A364S) || \
mbed_official 582:53297373a894 100 AVR32_PART_IS_DEFINED(UC3A3128) || \
mbed_official 582:53297373a894 101 AVR32_PART_IS_DEFINED(UC3A3128S) || \
mbed_official 582:53297373a894 102 AVR32_PART_IS_DEFINED(UC3A3256) || \
mbed_official 582:53297373a894 103 AVR32_PART_IS_DEFINED(UC3A3256S) \
mbed_official 582:53297373a894 104 )
mbed_official 582:53297373a894 105
mbed_official 582:53297373a894 106 #define UC3A4 ( \
mbed_official 582:53297373a894 107 AVR32_PART_IS_DEFINED(UC3A464) || \
mbed_official 582:53297373a894 108 AVR32_PART_IS_DEFINED(UC3A464S) || \
mbed_official 582:53297373a894 109 AVR32_PART_IS_DEFINED(UC3A4128) || \
mbed_official 582:53297373a894 110 AVR32_PART_IS_DEFINED(UC3A4128S) || \
mbed_official 582:53297373a894 111 AVR32_PART_IS_DEFINED(UC3A4256) || \
mbed_official 582:53297373a894 112 AVR32_PART_IS_DEFINED(UC3A4256S) \
mbed_official 582:53297373a894 113 )
mbed_official 582:53297373a894 114 /** @} */
mbed_official 582:53297373a894 115
mbed_official 582:53297373a894 116 /**
mbed_official 582:53297373a894 117 * \name AVR UC3 B series
mbed_official 582:53297373a894 118 * @{
mbed_official 582:53297373a894 119 */
mbed_official 582:53297373a894 120 #define UC3B0 ( \
mbed_official 582:53297373a894 121 AVR32_PART_IS_DEFINED(UC3B064) || \
mbed_official 582:53297373a894 122 AVR32_PART_IS_DEFINED(UC3B0128) || \
mbed_official 582:53297373a894 123 AVR32_PART_IS_DEFINED(UC3B0256) || \
mbed_official 582:53297373a894 124 AVR32_PART_IS_DEFINED(UC3B0512) \
mbed_official 582:53297373a894 125 )
mbed_official 582:53297373a894 126
mbed_official 582:53297373a894 127 #define UC3B1 ( \
mbed_official 582:53297373a894 128 AVR32_PART_IS_DEFINED(UC3B164) || \
mbed_official 582:53297373a894 129 AVR32_PART_IS_DEFINED(UC3B1128) || \
mbed_official 582:53297373a894 130 AVR32_PART_IS_DEFINED(UC3B1256) || \
mbed_official 582:53297373a894 131 AVR32_PART_IS_DEFINED(UC3B1512) \
mbed_official 582:53297373a894 132 )
mbed_official 582:53297373a894 133 /** @} */
mbed_official 582:53297373a894 134
mbed_official 582:53297373a894 135 /**
mbed_official 582:53297373a894 136 * \name AVR UC3 C series
mbed_official 582:53297373a894 137 * @{
mbed_official 582:53297373a894 138 */
mbed_official 582:53297373a894 139 #define UC3C0 ( \
mbed_official 582:53297373a894 140 AVR32_PART_IS_DEFINED(UC3C064C) || \
mbed_official 582:53297373a894 141 AVR32_PART_IS_DEFINED(UC3C0128C) || \
mbed_official 582:53297373a894 142 AVR32_PART_IS_DEFINED(UC3C0256C) || \
mbed_official 582:53297373a894 143 AVR32_PART_IS_DEFINED(UC3C0512C) \
mbed_official 582:53297373a894 144 )
mbed_official 582:53297373a894 145
mbed_official 582:53297373a894 146 #define UC3C1 ( \
mbed_official 582:53297373a894 147 AVR32_PART_IS_DEFINED(UC3C164C) || \
mbed_official 582:53297373a894 148 AVR32_PART_IS_DEFINED(UC3C1128C) || \
mbed_official 582:53297373a894 149 AVR32_PART_IS_DEFINED(UC3C1256C) || \
mbed_official 582:53297373a894 150 AVR32_PART_IS_DEFINED(UC3C1512C) \
mbed_official 582:53297373a894 151 )
mbed_official 582:53297373a894 152
mbed_official 582:53297373a894 153 #define UC3C2 ( \
mbed_official 582:53297373a894 154 AVR32_PART_IS_DEFINED(UC3C264C) || \
mbed_official 582:53297373a894 155 AVR32_PART_IS_DEFINED(UC3C2128C) || \
mbed_official 582:53297373a894 156 AVR32_PART_IS_DEFINED(UC3C2256C) || \
mbed_official 582:53297373a894 157 AVR32_PART_IS_DEFINED(UC3C2512C) \
mbed_official 582:53297373a894 158 )
mbed_official 582:53297373a894 159 /** @} */
mbed_official 582:53297373a894 160
mbed_official 582:53297373a894 161 /**
mbed_official 582:53297373a894 162 * \name AVR UC3 D series
mbed_official 582:53297373a894 163 * @{
mbed_official 582:53297373a894 164 */
mbed_official 582:53297373a894 165 #define UC3D3 ( \
mbed_official 582:53297373a894 166 AVR32_PART_IS_DEFINED(UC64D3) || \
mbed_official 582:53297373a894 167 AVR32_PART_IS_DEFINED(UC128D3) \
mbed_official 582:53297373a894 168 )
mbed_official 582:53297373a894 169
mbed_official 582:53297373a894 170 #define UC3D4 ( \
mbed_official 582:53297373a894 171 AVR32_PART_IS_DEFINED(UC64D4) || \
mbed_official 582:53297373a894 172 AVR32_PART_IS_DEFINED(UC128D4) \
mbed_official 582:53297373a894 173 )
mbed_official 582:53297373a894 174 /** @} */
mbed_official 582:53297373a894 175
mbed_official 582:53297373a894 176 /**
mbed_official 582:53297373a894 177 * \name AVR UC3 L series
mbed_official 582:53297373a894 178 * @{
mbed_official 582:53297373a894 179 */
mbed_official 582:53297373a894 180 #define UC3L0 ( \
mbed_official 582:53297373a894 181 AVR32_PART_IS_DEFINED(UC3L016) || \
mbed_official 582:53297373a894 182 AVR32_PART_IS_DEFINED(UC3L032) || \
mbed_official 582:53297373a894 183 AVR32_PART_IS_DEFINED(UC3L064) \
mbed_official 582:53297373a894 184 )
mbed_official 582:53297373a894 185
mbed_official 582:53297373a894 186 #define UC3L0128 ( \
mbed_official 582:53297373a894 187 AVR32_PART_IS_DEFINED(UC3L0128) \
mbed_official 582:53297373a894 188 )
mbed_official 582:53297373a894 189
mbed_official 582:53297373a894 190 #define UC3L0256 ( \
mbed_official 582:53297373a894 191 AVR32_PART_IS_DEFINED(UC3L0256) \
mbed_official 582:53297373a894 192 )
mbed_official 582:53297373a894 193
mbed_official 582:53297373a894 194 #define UC3L3 ( \
mbed_official 582:53297373a894 195 AVR32_PART_IS_DEFINED(UC64L3U) || \
mbed_official 582:53297373a894 196 AVR32_PART_IS_DEFINED(UC128L3U) || \
mbed_official 582:53297373a894 197 AVR32_PART_IS_DEFINED(UC256L3U) \
mbed_official 582:53297373a894 198 )
mbed_official 582:53297373a894 199
mbed_official 582:53297373a894 200 #define UC3L4 ( \
mbed_official 582:53297373a894 201 AVR32_PART_IS_DEFINED(UC64L4U) || \
mbed_official 582:53297373a894 202 AVR32_PART_IS_DEFINED(UC128L4U) || \
mbed_official 582:53297373a894 203 AVR32_PART_IS_DEFINED(UC256L4U) \
mbed_official 582:53297373a894 204 )
mbed_official 582:53297373a894 205
mbed_official 582:53297373a894 206 #define UC3L3_L4 (UC3L3 || UC3L4)
mbed_official 582:53297373a894 207 /** @} */
mbed_official 582:53297373a894 208
mbed_official 582:53297373a894 209 /**
mbed_official 582:53297373a894 210 * \name AVR UC3 families
mbed_official 582:53297373a894 211 * @{
mbed_official 582:53297373a894 212 */
mbed_official 582:53297373a894 213 /** AVR UC3 A family */
mbed_official 582:53297373a894 214 #define UC3A (UC3A0 || UC3A1 || UC3A3 || UC3A4)
mbed_official 582:53297373a894 215
mbed_official 582:53297373a894 216 /** AVR UC3 B family */
mbed_official 582:53297373a894 217 #define UC3B (UC3B0 || UC3B1)
mbed_official 582:53297373a894 218
mbed_official 582:53297373a894 219 /** AVR UC3 C family */
mbed_official 582:53297373a894 220 #define UC3C (UC3C0 || UC3C1 || UC3C2)
mbed_official 582:53297373a894 221
mbed_official 582:53297373a894 222 /** AVR UC3 D family */
mbed_official 582:53297373a894 223 #define UC3D (UC3D3 || UC3D4)
mbed_official 582:53297373a894 224
mbed_official 582:53297373a894 225 /** AVR UC3 L family */
mbed_official 582:53297373a894 226 #define UC3L (UC3L0 || UC3L0128 || UC3L0256 || UC3L3_L4)
mbed_official 582:53297373a894 227 /** @} */
mbed_official 582:53297373a894 228
mbed_official 582:53297373a894 229 /** AVR UC3 product line */
mbed_official 582:53297373a894 230 #define UC3 (UC3A || UC3B || UC3C || UC3D || UC3L)
mbed_official 582:53297373a894 231
mbed_official 582:53297373a894 232 /** @} */
mbed_official 582:53297373a894 233
mbed_official 582:53297373a894 234 /**
mbed_official 582:53297373a894 235 * \defgroup xmega_part_macros_group AVR XMEGA parts
mbed_official 582:53297373a894 236 * @{
mbed_official 582:53297373a894 237 */
mbed_official 582:53297373a894 238
mbed_official 582:53297373a894 239 /**
mbed_official 582:53297373a894 240 * \name AVR XMEGA A series
mbed_official 582:53297373a894 241 * @{
mbed_official 582:53297373a894 242 */
mbed_official 582:53297373a894 243 #define XMEGA_A1 ( \
mbed_official 582:53297373a894 244 AVR8_PART_IS_DEFINED(ATxmega64A1) || \
mbed_official 582:53297373a894 245 AVR8_PART_IS_DEFINED(ATxmega128A1) \
mbed_official 582:53297373a894 246 )
mbed_official 582:53297373a894 247
mbed_official 582:53297373a894 248 #define XMEGA_A3 ( \
mbed_official 582:53297373a894 249 AVR8_PART_IS_DEFINED(ATxmega64A3) || \
mbed_official 582:53297373a894 250 AVR8_PART_IS_DEFINED(ATxmega128A3) || \
mbed_official 582:53297373a894 251 AVR8_PART_IS_DEFINED(ATxmega192A3) || \
mbed_official 582:53297373a894 252 AVR8_PART_IS_DEFINED(ATxmega256A3) \
mbed_official 582:53297373a894 253 )
mbed_official 582:53297373a894 254
mbed_official 582:53297373a894 255 #define XMEGA_A3B ( \
mbed_official 582:53297373a894 256 AVR8_PART_IS_DEFINED(ATxmega256A3B) \
mbed_official 582:53297373a894 257 )
mbed_official 582:53297373a894 258
mbed_official 582:53297373a894 259 #define XMEGA_A4 ( \
mbed_official 582:53297373a894 260 AVR8_PART_IS_DEFINED(ATxmega16A4) || \
mbed_official 582:53297373a894 261 AVR8_PART_IS_DEFINED(ATxmega32A4) \
mbed_official 582:53297373a894 262 )
mbed_official 582:53297373a894 263 /** @} */
mbed_official 582:53297373a894 264
mbed_official 582:53297373a894 265 /**
mbed_official 582:53297373a894 266 * \name AVR XMEGA AU series
mbed_official 582:53297373a894 267 * @{
mbed_official 582:53297373a894 268 */
mbed_official 582:53297373a894 269 #define XMEGA_A1U ( \
mbed_official 582:53297373a894 270 AVR8_PART_IS_DEFINED(ATxmega64A1U) || \
mbed_official 582:53297373a894 271 AVR8_PART_IS_DEFINED(ATxmega128A1U) \
mbed_official 582:53297373a894 272 )
mbed_official 582:53297373a894 273
mbed_official 582:53297373a894 274 #define XMEGA_A3U ( \
mbed_official 582:53297373a894 275 AVR8_PART_IS_DEFINED(ATxmega64A3U) || \
mbed_official 582:53297373a894 276 AVR8_PART_IS_DEFINED(ATxmega128A3U) || \
mbed_official 582:53297373a894 277 AVR8_PART_IS_DEFINED(ATxmega192A3U) || \
mbed_official 582:53297373a894 278 AVR8_PART_IS_DEFINED(ATxmega256A3U) \
mbed_official 582:53297373a894 279 )
mbed_official 582:53297373a894 280
mbed_official 582:53297373a894 281 #define XMEGA_A3BU ( \
mbed_official 582:53297373a894 282 AVR8_PART_IS_DEFINED(ATxmega256A3BU) \
mbed_official 582:53297373a894 283 )
mbed_official 582:53297373a894 284
mbed_official 582:53297373a894 285 #define XMEGA_A4U ( \
mbed_official 582:53297373a894 286 AVR8_PART_IS_DEFINED(ATxmega16A4U) || \
mbed_official 582:53297373a894 287 AVR8_PART_IS_DEFINED(ATxmega32A4U) || \
mbed_official 582:53297373a894 288 AVR8_PART_IS_DEFINED(ATxmega64A4U) || \
mbed_official 582:53297373a894 289 AVR8_PART_IS_DEFINED(ATxmega128A4U) \
mbed_official 582:53297373a894 290 )
mbed_official 582:53297373a894 291 /** @} */
mbed_official 582:53297373a894 292
mbed_official 582:53297373a894 293 /**
mbed_official 582:53297373a894 294 * \name AVR XMEGA B series
mbed_official 582:53297373a894 295 * @{
mbed_official 582:53297373a894 296 */
mbed_official 582:53297373a894 297 #define XMEGA_B1 ( \
mbed_official 582:53297373a894 298 AVR8_PART_IS_DEFINED(ATxmega64B1) || \
mbed_official 582:53297373a894 299 AVR8_PART_IS_DEFINED(ATxmega128B1) \
mbed_official 582:53297373a894 300 )
mbed_official 582:53297373a894 301
mbed_official 582:53297373a894 302 #define XMEGA_B3 ( \
mbed_official 582:53297373a894 303 AVR8_PART_IS_DEFINED(ATxmega64B3) || \
mbed_official 582:53297373a894 304 AVR8_PART_IS_DEFINED(ATxmega128B3) \
mbed_official 582:53297373a894 305 )
mbed_official 582:53297373a894 306 /** @} */
mbed_official 582:53297373a894 307
mbed_official 582:53297373a894 308 /**
mbed_official 582:53297373a894 309 * \name AVR XMEGA C series
mbed_official 582:53297373a894 310 * @{
mbed_official 582:53297373a894 311 */
mbed_official 582:53297373a894 312 #define XMEGA_C3 ( \
mbed_official 582:53297373a894 313 AVR8_PART_IS_DEFINED(ATxmega384C3) || \
mbed_official 582:53297373a894 314 AVR8_PART_IS_DEFINED(ATxmega256C3) || \
mbed_official 582:53297373a894 315 AVR8_PART_IS_DEFINED(ATxmega192C3) || \
mbed_official 582:53297373a894 316 AVR8_PART_IS_DEFINED(ATxmega128C3) || \
mbed_official 582:53297373a894 317 AVR8_PART_IS_DEFINED(ATxmega64C3) || \
mbed_official 582:53297373a894 318 AVR8_PART_IS_DEFINED(ATxmega32C3) \
mbed_official 582:53297373a894 319 )
mbed_official 582:53297373a894 320
mbed_official 582:53297373a894 321 #define XMEGA_C4 ( \
mbed_official 582:53297373a894 322 AVR8_PART_IS_DEFINED(ATxmega32C4) || \
mbed_official 582:53297373a894 323 AVR8_PART_IS_DEFINED(ATxmega16C4) \
mbed_official 582:53297373a894 324 )
mbed_official 582:53297373a894 325 /** @} */
mbed_official 582:53297373a894 326
mbed_official 582:53297373a894 327 /**
mbed_official 582:53297373a894 328 * \name AVR XMEGA D series
mbed_official 582:53297373a894 329 * @{
mbed_official 582:53297373a894 330 */
mbed_official 582:53297373a894 331 #define XMEGA_D3 ( \
mbed_official 582:53297373a894 332 AVR8_PART_IS_DEFINED(ATxmega32D3) || \
mbed_official 582:53297373a894 333 AVR8_PART_IS_DEFINED(ATxmega64D3) || \
mbed_official 582:53297373a894 334 AVR8_PART_IS_DEFINED(ATxmega128D3) || \
mbed_official 582:53297373a894 335 AVR8_PART_IS_DEFINED(ATxmega192D3) || \
mbed_official 582:53297373a894 336 AVR8_PART_IS_DEFINED(ATxmega256D3) || \
mbed_official 582:53297373a894 337 AVR8_PART_IS_DEFINED(ATxmega384D3) \
mbed_official 582:53297373a894 338 )
mbed_official 582:53297373a894 339
mbed_official 582:53297373a894 340 #define XMEGA_D4 ( \
mbed_official 582:53297373a894 341 AVR8_PART_IS_DEFINED(ATxmega16D4) || \
mbed_official 582:53297373a894 342 AVR8_PART_IS_DEFINED(ATxmega32D4) || \
mbed_official 582:53297373a894 343 AVR8_PART_IS_DEFINED(ATxmega64D4) || \
mbed_official 582:53297373a894 344 AVR8_PART_IS_DEFINED(ATxmega128D4) \
mbed_official 582:53297373a894 345 )
mbed_official 582:53297373a894 346 /** @} */
mbed_official 582:53297373a894 347
mbed_official 582:53297373a894 348 /**
mbed_official 582:53297373a894 349 * \name AVR XMEGA E series
mbed_official 582:53297373a894 350 * @{
mbed_official 582:53297373a894 351 */
mbed_official 582:53297373a894 352 #define XMEGA_E5 ( \
mbed_official 582:53297373a894 353 AVR8_PART_IS_DEFINED(ATxmega8E5) || \
mbed_official 582:53297373a894 354 AVR8_PART_IS_DEFINED(ATxmega16E5) || \
mbed_official 582:53297373a894 355 AVR8_PART_IS_DEFINED(ATxmega32E5) \
mbed_official 582:53297373a894 356 )
mbed_official 582:53297373a894 357 /** @} */
mbed_official 582:53297373a894 358
mbed_official 582:53297373a894 359
mbed_official 582:53297373a894 360 /**
mbed_official 582:53297373a894 361 * \name AVR XMEGA families
mbed_official 582:53297373a894 362 * @{
mbed_official 582:53297373a894 363 */
mbed_official 582:53297373a894 364 /** AVR XMEGA A family */
mbed_official 582:53297373a894 365 #define XMEGA_A (XMEGA_A1 || XMEGA_A3 || XMEGA_A3B || XMEGA_A4)
mbed_official 582:53297373a894 366
mbed_official 582:53297373a894 367 /** AVR XMEGA AU family */
mbed_official 582:53297373a894 368 #define XMEGA_AU (XMEGA_A1U || XMEGA_A3U || XMEGA_A3BU || XMEGA_A4U)
mbed_official 582:53297373a894 369
mbed_official 582:53297373a894 370 /** AVR XMEGA B family */
mbed_official 582:53297373a894 371 #define XMEGA_B (XMEGA_B1 || XMEGA_B3)
mbed_official 582:53297373a894 372
mbed_official 582:53297373a894 373 /** AVR XMEGA C family */
mbed_official 582:53297373a894 374 #define XMEGA_C (XMEGA_C3 || XMEGA_C4)
mbed_official 582:53297373a894 375
mbed_official 582:53297373a894 376 /** AVR XMEGA D family */
mbed_official 582:53297373a894 377 #define XMEGA_D (XMEGA_D3 || XMEGA_D4)
mbed_official 582:53297373a894 378
mbed_official 582:53297373a894 379 /** AVR XMEGA E family */
mbed_official 582:53297373a894 380 #define XMEGA_E (XMEGA_E5)
mbed_official 582:53297373a894 381 /** @} */
mbed_official 582:53297373a894 382
mbed_official 582:53297373a894 383
mbed_official 582:53297373a894 384 /** AVR XMEGA product line */
mbed_official 582:53297373a894 385 #define XMEGA (XMEGA_A || XMEGA_AU || XMEGA_B || XMEGA_C || XMEGA_D || XMEGA_E)
mbed_official 582:53297373a894 386
mbed_official 582:53297373a894 387 /** @} */
mbed_official 582:53297373a894 388
mbed_official 582:53297373a894 389 /**
mbed_official 582:53297373a894 390 * \defgroup mega_part_macros_group megaAVR parts
mbed_official 582:53297373a894 391 *
mbed_official 582:53297373a894 392 * \note These megaAVR groupings are based on the groups in AVR Libc for the
mbed_official 582:53297373a894 393 * part header files. They are not names of official megaAVR device series or
mbed_official 582:53297373a894 394 * families.
mbed_official 582:53297373a894 395 *
mbed_official 582:53297373a894 396 * @{
mbed_official 582:53297373a894 397 */
mbed_official 582:53297373a894 398
mbed_official 582:53297373a894 399 /**
mbed_official 582:53297373a894 400 * \name ATmegaxx0/xx1 subgroups
mbed_official 582:53297373a894 401 * @{
mbed_official 582:53297373a894 402 */
mbed_official 582:53297373a894 403 #define MEGA_XX0 ( \
mbed_official 582:53297373a894 404 AVR8_PART_IS_DEFINED(ATmega640) || \
mbed_official 582:53297373a894 405 AVR8_PART_IS_DEFINED(ATmega1280) || \
mbed_official 582:53297373a894 406 AVR8_PART_IS_DEFINED(ATmega2560) \
mbed_official 582:53297373a894 407 )
mbed_official 582:53297373a894 408
mbed_official 582:53297373a894 409 #define MEGA_XX1 ( \
mbed_official 582:53297373a894 410 AVR8_PART_IS_DEFINED(ATmega1281) || \
mbed_official 582:53297373a894 411 AVR8_PART_IS_DEFINED(ATmega2561) \
mbed_official 582:53297373a894 412 )
mbed_official 582:53297373a894 413 /** @} */
mbed_official 582:53297373a894 414
mbed_official 582:53297373a894 415 /**
mbed_official 582:53297373a894 416 * \name megaAVR groups
mbed_official 582:53297373a894 417 * @{
mbed_official 582:53297373a894 418 */
mbed_official 582:53297373a894 419 /** ATmegaxx0/xx1 group */
mbed_official 582:53297373a894 420 #define MEGA_XX0_1 (MEGA_XX0 || MEGA_XX1)
mbed_official 582:53297373a894 421
mbed_official 582:53297373a894 422 /** ATmegaxx4 group */
mbed_official 582:53297373a894 423 #define MEGA_XX4 ( \
mbed_official 582:53297373a894 424 AVR8_PART_IS_DEFINED(ATmega164A) || \
mbed_official 582:53297373a894 425 AVR8_PART_IS_DEFINED(ATmega164PA) || \
mbed_official 582:53297373a894 426 AVR8_PART_IS_DEFINED(ATmega324A) || \
mbed_official 582:53297373a894 427 AVR8_PART_IS_DEFINED(ATmega324PA) || \
mbed_official 582:53297373a894 428 AVR8_PART_IS_DEFINED(ATmega644) || \
mbed_official 582:53297373a894 429 AVR8_PART_IS_DEFINED(ATmega644A) || \
mbed_official 582:53297373a894 430 AVR8_PART_IS_DEFINED(ATmega644PA) || \
mbed_official 582:53297373a894 431 AVR8_PART_IS_DEFINED(ATmega1284P) || \
mbed_official 582:53297373a894 432 AVR8_PART_IS_DEFINED(ATmega128RFA1) \
mbed_official 582:53297373a894 433 )
mbed_official 582:53297373a894 434
mbed_official 582:53297373a894 435 /** ATmegaxx4 group */
mbed_official 582:53297373a894 436 #define MEGA_XX4_A ( \
mbed_official 582:53297373a894 437 AVR8_PART_IS_DEFINED(ATmega164A) || \
mbed_official 582:53297373a894 438 AVR8_PART_IS_DEFINED(ATmega164PA) || \
mbed_official 582:53297373a894 439 AVR8_PART_IS_DEFINED(ATmega324A) || \
mbed_official 582:53297373a894 440 AVR8_PART_IS_DEFINED(ATmega324PA) || \
mbed_official 582:53297373a894 441 AVR8_PART_IS_DEFINED(ATmega644A) || \
mbed_official 582:53297373a894 442 AVR8_PART_IS_DEFINED(ATmega644PA) || \
mbed_official 582:53297373a894 443 AVR8_PART_IS_DEFINED(ATmega1284P) \
mbed_official 582:53297373a894 444 )
mbed_official 582:53297373a894 445
mbed_official 582:53297373a894 446 /** ATmegaxx8 group */
mbed_official 582:53297373a894 447 #define MEGA_XX8 ( \
mbed_official 582:53297373a894 448 AVR8_PART_IS_DEFINED(ATmega48) || \
mbed_official 582:53297373a894 449 AVR8_PART_IS_DEFINED(ATmega48A) || \
mbed_official 582:53297373a894 450 AVR8_PART_IS_DEFINED(ATmega48PA) || \
mbed_official 582:53297373a894 451 AVR8_PART_IS_DEFINED(ATmega88) || \
mbed_official 582:53297373a894 452 AVR8_PART_IS_DEFINED(ATmega88A) || \
mbed_official 582:53297373a894 453 AVR8_PART_IS_DEFINED(ATmega88PA) || \
mbed_official 582:53297373a894 454 AVR8_PART_IS_DEFINED(ATmega168) || \
mbed_official 582:53297373a894 455 AVR8_PART_IS_DEFINED(ATmega168A) || \
mbed_official 582:53297373a894 456 AVR8_PART_IS_DEFINED(ATmega168PA) || \
mbed_official 582:53297373a894 457 AVR8_PART_IS_DEFINED(ATmega328) || \
mbed_official 582:53297373a894 458 AVR8_PART_IS_DEFINED(ATmega328P) \
mbed_official 582:53297373a894 459 )
mbed_official 582:53297373a894 460
mbed_official 582:53297373a894 461 /** ATmegaxx8A/P/PA group */
mbed_official 582:53297373a894 462 #define MEGA_XX8_A ( \
mbed_official 582:53297373a894 463 AVR8_PART_IS_DEFINED(ATmega48A) || \
mbed_official 582:53297373a894 464 AVR8_PART_IS_DEFINED(ATmega48PA) || \
mbed_official 582:53297373a894 465 AVR8_PART_IS_DEFINED(ATmega88A) || \
mbed_official 582:53297373a894 466 AVR8_PART_IS_DEFINED(ATmega88PA) || \
mbed_official 582:53297373a894 467 AVR8_PART_IS_DEFINED(ATmega168A) || \
mbed_official 582:53297373a894 468 AVR8_PART_IS_DEFINED(ATmega168PA) || \
mbed_official 582:53297373a894 469 AVR8_PART_IS_DEFINED(ATmega328P) \
mbed_official 582:53297373a894 470 )
mbed_official 582:53297373a894 471
mbed_official 582:53297373a894 472 /** ATmegaxx group */
mbed_official 582:53297373a894 473 #define MEGA_XX ( \
mbed_official 582:53297373a894 474 AVR8_PART_IS_DEFINED(ATmega16) || \
mbed_official 582:53297373a894 475 AVR8_PART_IS_DEFINED(ATmega16A) || \
mbed_official 582:53297373a894 476 AVR8_PART_IS_DEFINED(ATmega32) || \
mbed_official 582:53297373a894 477 AVR8_PART_IS_DEFINED(ATmega32A) || \
mbed_official 582:53297373a894 478 AVR8_PART_IS_DEFINED(ATmega64) || \
mbed_official 582:53297373a894 479 AVR8_PART_IS_DEFINED(ATmega64A) || \
mbed_official 582:53297373a894 480 AVR8_PART_IS_DEFINED(ATmega128) || \
mbed_official 582:53297373a894 481 AVR8_PART_IS_DEFINED(ATmega128A) \
mbed_official 582:53297373a894 482 )
mbed_official 582:53297373a894 483
mbed_official 582:53297373a894 484 /** ATmegaxxA/P/PA group */
mbed_official 582:53297373a894 485 #define MEGA_XX_A ( \
mbed_official 582:53297373a894 486 AVR8_PART_IS_DEFINED(ATmega16A) || \
mbed_official 582:53297373a894 487 AVR8_PART_IS_DEFINED(ATmega32A) || \
mbed_official 582:53297373a894 488 AVR8_PART_IS_DEFINED(ATmega64A) || \
mbed_official 582:53297373a894 489 AVR8_PART_IS_DEFINED(ATmega128A) \
mbed_official 582:53297373a894 490 )
mbed_official 582:53297373a894 491 /** ATmegaxxRFA1 group */
mbed_official 582:53297373a894 492 #define MEGA_RFA1 ( \
mbed_official 582:53297373a894 493 AVR8_PART_IS_DEFINED(ATmega128RFA1) \
mbed_official 582:53297373a894 494 )
mbed_official 582:53297373a894 495
mbed_official 582:53297373a894 496 /** ATmegaxxRFR2 group */
mbed_official 582:53297373a894 497 #define MEGA_RFR2 ( \
mbed_official 582:53297373a894 498 AVR8_PART_IS_DEFINED(ATmega64RFR2) || \
mbed_official 582:53297373a894 499 AVR8_PART_IS_DEFINED(ATmega128RFR2) || \
mbed_official 582:53297373a894 500 AVR8_PART_IS_DEFINED(ATmega256RFR2) || \
mbed_official 582:53297373a894 501 AVR8_PART_IS_DEFINED(ATmega644RFR2) || \
mbed_official 582:53297373a894 502 AVR8_PART_IS_DEFINED(ATmega1284RFR2) || \
mbed_official 582:53297373a894 503 AVR8_PART_IS_DEFINED(ATmega2564RFR2) \
mbed_official 582:53297373a894 504 )
mbed_official 582:53297373a894 505
mbed_official 582:53297373a894 506
mbed_official 582:53297373a894 507 /** ATmegaxxRFxx group */
mbed_official 582:53297373a894 508 #define MEGA_RF (MEGA_RFA1 || MEGA_RFR2)
mbed_official 582:53297373a894 509
mbed_official 582:53297373a894 510 /**
mbed_official 582:53297373a894 511 * \name ATmegaxx_un0/un1/un2 subgroups
mbed_official 582:53297373a894 512 * @{
mbed_official 582:53297373a894 513 */
mbed_official 582:53297373a894 514 #define MEGA_XX_UN0 ( \
mbed_official 582:53297373a894 515 AVR8_PART_IS_DEFINED(ATmega16) || \
mbed_official 582:53297373a894 516 AVR8_PART_IS_DEFINED(ATmega16A) || \
mbed_official 582:53297373a894 517 AVR8_PART_IS_DEFINED(ATmega32) || \
mbed_official 582:53297373a894 518 AVR8_PART_IS_DEFINED(ATmega32A) \
mbed_official 582:53297373a894 519 )
mbed_official 582:53297373a894 520
mbed_official 582:53297373a894 521 /** ATmegaxx group without power reduction and
mbed_official 582:53297373a894 522 * And interrupt sense register.
mbed_official 582:53297373a894 523 */
mbed_official 582:53297373a894 524 #define MEGA_XX_UN1 ( \
mbed_official 582:53297373a894 525 AVR8_PART_IS_DEFINED(ATmega64) || \
mbed_official 582:53297373a894 526 AVR8_PART_IS_DEFINED(ATmega64A) || \
mbed_official 582:53297373a894 527 AVR8_PART_IS_DEFINED(ATmega128) || \
mbed_official 582:53297373a894 528 AVR8_PART_IS_DEFINED(ATmega128A) \
mbed_official 582:53297373a894 529 )
mbed_official 582:53297373a894 530
mbed_official 582:53297373a894 531 /** ATmegaxx group without power reduction and
mbed_official 582:53297373a894 532 * And interrupt sense register.
mbed_official 582:53297373a894 533 */
mbed_official 582:53297373a894 534 #define MEGA_XX_UN2 ( \
mbed_official 582:53297373a894 535 AVR8_PART_IS_DEFINED(ATmega169P) || \
mbed_official 582:53297373a894 536 AVR8_PART_IS_DEFINED(ATmega169PA) || \
mbed_official 582:53297373a894 537 AVR8_PART_IS_DEFINED(ATmega329P) || \
mbed_official 582:53297373a894 538 AVR8_PART_IS_DEFINED(ATmega329PA) \
mbed_official 582:53297373a894 539 )
mbed_official 582:53297373a894 540
mbed_official 582:53297373a894 541 /** Devices added to complete megaAVR offering.
mbed_official 582:53297373a894 542 * Please do not use this group symbol as it is not intended
mbed_official 582:53297373a894 543 * to be permanent: the devices should be regrouped.
mbed_official 582:53297373a894 544 */
mbed_official 582:53297373a894 545 #define MEGA_UNCATEGORIZED ( \
mbed_official 582:53297373a894 546 AVR8_PART_IS_DEFINED(AT90CAN128) || \
mbed_official 582:53297373a894 547 AVR8_PART_IS_DEFINED(AT90CAN32) || \
mbed_official 582:53297373a894 548 AVR8_PART_IS_DEFINED(AT90CAN64) || \
mbed_official 582:53297373a894 549 AVR8_PART_IS_DEFINED(AT90PWM1) || \
mbed_official 582:53297373a894 550 AVR8_PART_IS_DEFINED(AT90PWM216) || \
mbed_official 582:53297373a894 551 AVR8_PART_IS_DEFINED(AT90PWM2B) || \
mbed_official 582:53297373a894 552 AVR8_PART_IS_DEFINED(AT90PWM316) || \
mbed_official 582:53297373a894 553 AVR8_PART_IS_DEFINED(AT90PWM3B) || \
mbed_official 582:53297373a894 554 AVR8_PART_IS_DEFINED(AT90PWM81) || \
mbed_official 582:53297373a894 555 AVR8_PART_IS_DEFINED(AT90USB1286) || \
mbed_official 582:53297373a894 556 AVR8_PART_IS_DEFINED(AT90USB1287) || \
mbed_official 582:53297373a894 557 AVR8_PART_IS_DEFINED(AT90USB162) || \
mbed_official 582:53297373a894 558 AVR8_PART_IS_DEFINED(AT90USB646) || \
mbed_official 582:53297373a894 559 AVR8_PART_IS_DEFINED(AT90USB647) || \
mbed_official 582:53297373a894 560 AVR8_PART_IS_DEFINED(AT90USB82) || \
mbed_official 582:53297373a894 561 AVR8_PART_IS_DEFINED(ATmega1284) || \
mbed_official 582:53297373a894 562 AVR8_PART_IS_DEFINED(ATmega162) || \
mbed_official 582:53297373a894 563 AVR8_PART_IS_DEFINED(ATmega164P) || \
mbed_official 582:53297373a894 564 AVR8_PART_IS_DEFINED(ATmega165A) || \
mbed_official 582:53297373a894 565 AVR8_PART_IS_DEFINED(ATmega165P) || \
mbed_official 582:53297373a894 566 AVR8_PART_IS_DEFINED(ATmega165PA) || \
mbed_official 582:53297373a894 567 AVR8_PART_IS_DEFINED(ATmega168P) || \
mbed_official 582:53297373a894 568 AVR8_PART_IS_DEFINED(ATmega169A) || \
mbed_official 582:53297373a894 569 AVR8_PART_IS_DEFINED(ATmega16M1) || \
mbed_official 582:53297373a894 570 AVR8_PART_IS_DEFINED(ATmega16U2) || \
mbed_official 582:53297373a894 571 AVR8_PART_IS_DEFINED(ATmega16U4) || \
mbed_official 582:53297373a894 572 AVR8_PART_IS_DEFINED(ATmega256RFA2) || \
mbed_official 582:53297373a894 573 AVR8_PART_IS_DEFINED(ATmega324P) || \
mbed_official 582:53297373a894 574 AVR8_PART_IS_DEFINED(ATmega325) || \
mbed_official 582:53297373a894 575 AVR8_PART_IS_DEFINED(ATmega3250) || \
mbed_official 582:53297373a894 576 AVR8_PART_IS_DEFINED(ATmega3250A) || \
mbed_official 582:53297373a894 577 AVR8_PART_IS_DEFINED(ATmega3250P) || \
mbed_official 582:53297373a894 578 AVR8_PART_IS_DEFINED(ATmega3250PA) || \
mbed_official 582:53297373a894 579 AVR8_PART_IS_DEFINED(ATmega325A) || \
mbed_official 582:53297373a894 580 AVR8_PART_IS_DEFINED(ATmega325P) || \
mbed_official 582:53297373a894 581 AVR8_PART_IS_DEFINED(ATmega325PA) || \
mbed_official 582:53297373a894 582 AVR8_PART_IS_DEFINED(ATmega329) || \
mbed_official 582:53297373a894 583 AVR8_PART_IS_DEFINED(ATmega3290) || \
mbed_official 582:53297373a894 584 AVR8_PART_IS_DEFINED(ATmega3290A) || \
mbed_official 582:53297373a894 585 AVR8_PART_IS_DEFINED(ATmega3290P) || \
mbed_official 582:53297373a894 586 AVR8_PART_IS_DEFINED(ATmega3290PA) || \
mbed_official 582:53297373a894 587 AVR8_PART_IS_DEFINED(ATmega329A) || \
mbed_official 582:53297373a894 588 AVR8_PART_IS_DEFINED(ATmega32M1) || \
mbed_official 582:53297373a894 589 AVR8_PART_IS_DEFINED(ATmega32U2) || \
mbed_official 582:53297373a894 590 AVR8_PART_IS_DEFINED(ATmega32U4) || \
mbed_official 582:53297373a894 591 AVR8_PART_IS_DEFINED(ATmega48P) || \
mbed_official 582:53297373a894 592 AVR8_PART_IS_DEFINED(ATmega644P) || \
mbed_official 582:53297373a894 593 AVR8_PART_IS_DEFINED(ATmega645) || \
mbed_official 582:53297373a894 594 AVR8_PART_IS_DEFINED(ATmega6450) || \
mbed_official 582:53297373a894 595 AVR8_PART_IS_DEFINED(ATmega6450A) || \
mbed_official 582:53297373a894 596 AVR8_PART_IS_DEFINED(ATmega6450P) || \
mbed_official 582:53297373a894 597 AVR8_PART_IS_DEFINED(ATmega645A) || \
mbed_official 582:53297373a894 598 AVR8_PART_IS_DEFINED(ATmega645P) || \
mbed_official 582:53297373a894 599 AVR8_PART_IS_DEFINED(ATmega649) || \
mbed_official 582:53297373a894 600 AVR8_PART_IS_DEFINED(ATmega6490) || \
mbed_official 582:53297373a894 601 AVR8_PART_IS_DEFINED(ATmega6490A) || \
mbed_official 582:53297373a894 602 AVR8_PART_IS_DEFINED(ATmega6490P) || \
mbed_official 582:53297373a894 603 AVR8_PART_IS_DEFINED(ATmega649A) || \
mbed_official 582:53297373a894 604 AVR8_PART_IS_DEFINED(ATmega649P) || \
mbed_official 582:53297373a894 605 AVR8_PART_IS_DEFINED(ATmega64M1) || \
mbed_official 582:53297373a894 606 AVR8_PART_IS_DEFINED(ATmega64RFA2) || \
mbed_official 582:53297373a894 607 AVR8_PART_IS_DEFINED(ATmega8) || \
mbed_official 582:53297373a894 608 AVR8_PART_IS_DEFINED(ATmega8515) || \
mbed_official 582:53297373a894 609 AVR8_PART_IS_DEFINED(ATmega8535) || \
mbed_official 582:53297373a894 610 AVR8_PART_IS_DEFINED(ATmega88P) || \
mbed_official 582:53297373a894 611 AVR8_PART_IS_DEFINED(ATmega8A) || \
mbed_official 582:53297373a894 612 AVR8_PART_IS_DEFINED(ATmega8U2) \
mbed_official 582:53297373a894 613 )
mbed_official 582:53297373a894 614
mbed_official 582:53297373a894 615 /** Unspecified group */
mbed_official 582:53297373a894 616 #define MEGA_UNSPECIFIED (MEGA_XX_UN0 || MEGA_XX_UN1 || MEGA_XX_UN2 || \
mbed_official 582:53297373a894 617 MEGA_UNCATEGORIZED)
mbed_official 582:53297373a894 618
mbed_official 582:53297373a894 619 /** @} */
mbed_official 582:53297373a894 620
mbed_official 582:53297373a894 621 /** megaAVR product line */
mbed_official 582:53297373a894 622 #define MEGA (MEGA_XX0_1 || MEGA_XX4 || MEGA_XX8 || MEGA_XX || MEGA_RF || \
mbed_official 582:53297373a894 623 MEGA_UNSPECIFIED)
mbed_official 582:53297373a894 624
mbed_official 582:53297373a894 625 /** @} */
mbed_official 582:53297373a894 626
mbed_official 582:53297373a894 627 /**
mbed_official 582:53297373a894 628 * \defgroup tiny_part_macros_group tinyAVR parts
mbed_official 582:53297373a894 629 *
mbed_official 582:53297373a894 630 * @{
mbed_official 582:53297373a894 631 */
mbed_official 582:53297373a894 632
mbed_official 582:53297373a894 633 /**
mbed_official 582:53297373a894 634 * \name tinyAVR groups
mbed_official 582:53297373a894 635 * @{
mbed_official 582:53297373a894 636 */
mbed_official 582:53297373a894 637
mbed_official 582:53297373a894 638 /** Devices added to complete tinyAVR offering.
mbed_official 582:53297373a894 639 * Please do not use this group symbol as it is not intended
mbed_official 582:53297373a894 640 * to be permanent: the devices should be regrouped.
mbed_official 582:53297373a894 641 */
mbed_official 582:53297373a894 642 #define TINY_UNCATEGORIZED ( \
mbed_official 582:53297373a894 643 AVR8_PART_IS_DEFINED(ATtiny10) || \
mbed_official 582:53297373a894 644 AVR8_PART_IS_DEFINED(ATtiny13) || \
mbed_official 582:53297373a894 645 AVR8_PART_IS_DEFINED(ATtiny13A) || \
mbed_official 582:53297373a894 646 AVR8_PART_IS_DEFINED(ATtiny1634) || \
mbed_official 582:53297373a894 647 AVR8_PART_IS_DEFINED(ATtiny167) || \
mbed_official 582:53297373a894 648 AVR8_PART_IS_DEFINED(ATtiny20) || \
mbed_official 582:53297373a894 649 AVR8_PART_IS_DEFINED(ATtiny2313) || \
mbed_official 582:53297373a894 650 AVR8_PART_IS_DEFINED(ATtiny2313A) || \
mbed_official 582:53297373a894 651 AVR8_PART_IS_DEFINED(ATtiny24) || \
mbed_official 582:53297373a894 652 AVR8_PART_IS_DEFINED(ATtiny24A) || \
mbed_official 582:53297373a894 653 AVR8_PART_IS_DEFINED(ATtiny25) || \
mbed_official 582:53297373a894 654 AVR8_PART_IS_DEFINED(ATtiny26) || \
mbed_official 582:53297373a894 655 AVR8_PART_IS_DEFINED(ATtiny261) || \
mbed_official 582:53297373a894 656 AVR8_PART_IS_DEFINED(ATtiny261A) || \
mbed_official 582:53297373a894 657 AVR8_PART_IS_DEFINED(ATtiny4) || \
mbed_official 582:53297373a894 658 AVR8_PART_IS_DEFINED(ATtiny40) || \
mbed_official 582:53297373a894 659 AVR8_PART_IS_DEFINED(ATtiny4313) || \
mbed_official 582:53297373a894 660 AVR8_PART_IS_DEFINED(ATtiny43U) || \
mbed_official 582:53297373a894 661 AVR8_PART_IS_DEFINED(ATtiny44) || \
mbed_official 582:53297373a894 662 AVR8_PART_IS_DEFINED(ATtiny44A) || \
mbed_official 582:53297373a894 663 AVR8_PART_IS_DEFINED(ATtiny45) || \
mbed_official 582:53297373a894 664 AVR8_PART_IS_DEFINED(ATtiny461) || \
mbed_official 582:53297373a894 665 AVR8_PART_IS_DEFINED(ATtiny461A) || \
mbed_official 582:53297373a894 666 AVR8_PART_IS_DEFINED(ATtiny48) || \
mbed_official 582:53297373a894 667 AVR8_PART_IS_DEFINED(ATtiny5) || \
mbed_official 582:53297373a894 668 AVR8_PART_IS_DEFINED(ATtiny828) || \
mbed_official 582:53297373a894 669 AVR8_PART_IS_DEFINED(ATtiny84) || \
mbed_official 582:53297373a894 670 AVR8_PART_IS_DEFINED(ATtiny84A) || \
mbed_official 582:53297373a894 671 AVR8_PART_IS_DEFINED(ATtiny85) || \
mbed_official 582:53297373a894 672 AVR8_PART_IS_DEFINED(ATtiny861) || \
mbed_official 582:53297373a894 673 AVR8_PART_IS_DEFINED(ATtiny861A) || \
mbed_official 582:53297373a894 674 AVR8_PART_IS_DEFINED(ATtiny87) || \
mbed_official 582:53297373a894 675 AVR8_PART_IS_DEFINED(ATtiny88) || \
mbed_official 582:53297373a894 676 AVR8_PART_IS_DEFINED(ATtiny9) \
mbed_official 582:53297373a894 677 )
mbed_official 582:53297373a894 678
mbed_official 582:53297373a894 679 /** @} */
mbed_official 582:53297373a894 680
mbed_official 582:53297373a894 681 /** tinyAVR product line */
mbed_official 582:53297373a894 682 #define TINY (TINY_UNCATEGORIZED)
mbed_official 582:53297373a894 683
mbed_official 582:53297373a894 684 /** @} */
mbed_official 582:53297373a894 685
mbed_official 582:53297373a894 686 /**
mbed_official 582:53297373a894 687 * \defgroup sam_part_macros_group SAM parts
mbed_official 582:53297373a894 688 * @{
mbed_official 582:53297373a894 689 */
mbed_official 582:53297373a894 690
mbed_official 582:53297373a894 691 /**
mbed_official 582:53297373a894 692 * \name SAM3S series
mbed_official 582:53297373a894 693 * @{
mbed_official 582:53297373a894 694 */
mbed_official 582:53297373a894 695 #define SAM3S1 ( \
mbed_official 582:53297373a894 696 SAM_PART_IS_DEFINED(SAM3S1A) || \
mbed_official 582:53297373a894 697 SAM_PART_IS_DEFINED(SAM3S1B) || \
mbed_official 582:53297373a894 698 SAM_PART_IS_DEFINED(SAM3S1C) \
mbed_official 582:53297373a894 699 )
mbed_official 582:53297373a894 700
mbed_official 582:53297373a894 701 #define SAM3S2 ( \
mbed_official 582:53297373a894 702 SAM_PART_IS_DEFINED(SAM3S2A) || \
mbed_official 582:53297373a894 703 SAM_PART_IS_DEFINED(SAM3S2B) || \
mbed_official 582:53297373a894 704 SAM_PART_IS_DEFINED(SAM3S2C) \
mbed_official 582:53297373a894 705 )
mbed_official 582:53297373a894 706
mbed_official 582:53297373a894 707 #define SAM3S4 ( \
mbed_official 582:53297373a894 708 SAM_PART_IS_DEFINED(SAM3S4A) || \
mbed_official 582:53297373a894 709 SAM_PART_IS_DEFINED(SAM3S4B) || \
mbed_official 582:53297373a894 710 SAM_PART_IS_DEFINED(SAM3S4C) \
mbed_official 582:53297373a894 711 )
mbed_official 582:53297373a894 712
mbed_official 582:53297373a894 713 #define SAM3S8 ( \
mbed_official 582:53297373a894 714 SAM_PART_IS_DEFINED(SAM3S8B) || \
mbed_official 582:53297373a894 715 SAM_PART_IS_DEFINED(SAM3S8C) \
mbed_official 582:53297373a894 716 )
mbed_official 582:53297373a894 717
mbed_official 582:53297373a894 718 #define SAM3SD8 ( \
mbed_official 582:53297373a894 719 SAM_PART_IS_DEFINED(SAM3SD8B) || \
mbed_official 582:53297373a894 720 SAM_PART_IS_DEFINED(SAM3SD8C) \
mbed_official 582:53297373a894 721 )
mbed_official 582:53297373a894 722 /** @} */
mbed_official 582:53297373a894 723
mbed_official 582:53297373a894 724 /**
mbed_official 582:53297373a894 725 * \name SAM3U series
mbed_official 582:53297373a894 726 * @{
mbed_official 582:53297373a894 727 */
mbed_official 582:53297373a894 728 #define SAM3U1 ( \
mbed_official 582:53297373a894 729 SAM_PART_IS_DEFINED(SAM3U1C) || \
mbed_official 582:53297373a894 730 SAM_PART_IS_DEFINED(SAM3U1E) \
mbed_official 582:53297373a894 731 )
mbed_official 582:53297373a894 732
mbed_official 582:53297373a894 733 #define SAM3U2 ( \
mbed_official 582:53297373a894 734 SAM_PART_IS_DEFINED(SAM3U2C) || \
mbed_official 582:53297373a894 735 SAM_PART_IS_DEFINED(SAM3U2E) \
mbed_official 582:53297373a894 736 )
mbed_official 582:53297373a894 737
mbed_official 582:53297373a894 738 #define SAM3U4 ( \
mbed_official 582:53297373a894 739 SAM_PART_IS_DEFINED(SAM3U4C) || \
mbed_official 582:53297373a894 740 SAM_PART_IS_DEFINED(SAM3U4E) \
mbed_official 582:53297373a894 741 )
mbed_official 582:53297373a894 742 /** @} */
mbed_official 582:53297373a894 743
mbed_official 582:53297373a894 744 /**
mbed_official 582:53297373a894 745 * \name SAM3N series
mbed_official 582:53297373a894 746 * @{
mbed_official 582:53297373a894 747 */
mbed_official 582:53297373a894 748 #define SAM3N00 ( \
mbed_official 582:53297373a894 749 SAM_PART_IS_DEFINED(SAM3N00A) || \
mbed_official 582:53297373a894 750 SAM_PART_IS_DEFINED(SAM3N00B) \
mbed_official 582:53297373a894 751 )
mbed_official 582:53297373a894 752
mbed_official 582:53297373a894 753 #define SAM3N0 ( \
mbed_official 582:53297373a894 754 SAM_PART_IS_DEFINED(SAM3N0A) || \
mbed_official 582:53297373a894 755 SAM_PART_IS_DEFINED(SAM3N0B) || \
mbed_official 582:53297373a894 756 SAM_PART_IS_DEFINED(SAM3N0C) \
mbed_official 582:53297373a894 757 )
mbed_official 582:53297373a894 758
mbed_official 582:53297373a894 759 #define SAM3N1 ( \
mbed_official 582:53297373a894 760 SAM_PART_IS_DEFINED(SAM3N1A) || \
mbed_official 582:53297373a894 761 SAM_PART_IS_DEFINED(SAM3N1B) || \
mbed_official 582:53297373a894 762 SAM_PART_IS_DEFINED(SAM3N1C) \
mbed_official 582:53297373a894 763 )
mbed_official 582:53297373a894 764
mbed_official 582:53297373a894 765 #define SAM3N2 ( \
mbed_official 582:53297373a894 766 SAM_PART_IS_DEFINED(SAM3N2A) || \
mbed_official 582:53297373a894 767 SAM_PART_IS_DEFINED(SAM3N2B) || \
mbed_official 582:53297373a894 768 SAM_PART_IS_DEFINED(SAM3N2C) \
mbed_official 582:53297373a894 769 )
mbed_official 582:53297373a894 770
mbed_official 582:53297373a894 771 #define SAM3N4 ( \
mbed_official 582:53297373a894 772 SAM_PART_IS_DEFINED(SAM3N4A) || \
mbed_official 582:53297373a894 773 SAM_PART_IS_DEFINED(SAM3N4B) || \
mbed_official 582:53297373a894 774 SAM_PART_IS_DEFINED(SAM3N4C) \
mbed_official 582:53297373a894 775 )
mbed_official 582:53297373a894 776 /** @} */
mbed_official 582:53297373a894 777
mbed_official 582:53297373a894 778 /**
mbed_official 582:53297373a894 779 * \name SAM3X series
mbed_official 582:53297373a894 780 * @{
mbed_official 582:53297373a894 781 */
mbed_official 582:53297373a894 782 #define SAM3X4 ( \
mbed_official 582:53297373a894 783 SAM_PART_IS_DEFINED(SAM3X4C) || \
mbed_official 582:53297373a894 784 SAM_PART_IS_DEFINED(SAM3X4E) \
mbed_official 582:53297373a894 785 )
mbed_official 582:53297373a894 786
mbed_official 582:53297373a894 787 #define SAM3X8 ( \
mbed_official 582:53297373a894 788 SAM_PART_IS_DEFINED(SAM3X8C) || \
mbed_official 582:53297373a894 789 SAM_PART_IS_DEFINED(SAM3X8E) || \
mbed_official 582:53297373a894 790 SAM_PART_IS_DEFINED(SAM3X8H) \
mbed_official 582:53297373a894 791 )
mbed_official 582:53297373a894 792 /** @} */
mbed_official 582:53297373a894 793
mbed_official 582:53297373a894 794 /**
mbed_official 582:53297373a894 795 * \name SAM3A series
mbed_official 582:53297373a894 796 * @{
mbed_official 582:53297373a894 797 */
mbed_official 582:53297373a894 798 #define SAM3A4 ( \
mbed_official 582:53297373a894 799 SAM_PART_IS_DEFINED(SAM3A4C) \
mbed_official 582:53297373a894 800 )
mbed_official 582:53297373a894 801
mbed_official 582:53297373a894 802 #define SAM3A8 ( \
mbed_official 582:53297373a894 803 SAM_PART_IS_DEFINED(SAM3A8C) \
mbed_official 582:53297373a894 804 )
mbed_official 582:53297373a894 805 /** @} */
mbed_official 582:53297373a894 806
mbed_official 582:53297373a894 807 /**
mbed_official 582:53297373a894 808 * \name SAM4S series
mbed_official 582:53297373a894 809 * @{
mbed_official 582:53297373a894 810 */
mbed_official 582:53297373a894 811 #define SAM4S2 ( \
mbed_official 582:53297373a894 812 SAM_PART_IS_DEFINED(SAM4S2A) || \
mbed_official 582:53297373a894 813 SAM_PART_IS_DEFINED(SAM4S2B) || \
mbed_official 582:53297373a894 814 SAM_PART_IS_DEFINED(SAM4S2C) \
mbed_official 582:53297373a894 815 )
mbed_official 582:53297373a894 816
mbed_official 582:53297373a894 817 #define SAM4S4 ( \
mbed_official 582:53297373a894 818 SAM_PART_IS_DEFINED(SAM4S4A) || \
mbed_official 582:53297373a894 819 SAM_PART_IS_DEFINED(SAM4S4B) || \
mbed_official 582:53297373a894 820 SAM_PART_IS_DEFINED(SAM4S4C) \
mbed_official 582:53297373a894 821 )
mbed_official 582:53297373a894 822
mbed_official 582:53297373a894 823 #define SAM4S8 ( \
mbed_official 582:53297373a894 824 SAM_PART_IS_DEFINED(SAM4S8B) || \
mbed_official 582:53297373a894 825 SAM_PART_IS_DEFINED(SAM4S8C) \
mbed_official 582:53297373a894 826 )
mbed_official 582:53297373a894 827
mbed_official 582:53297373a894 828 #define SAM4S16 ( \
mbed_official 582:53297373a894 829 SAM_PART_IS_DEFINED(SAM4S16B) || \
mbed_official 582:53297373a894 830 SAM_PART_IS_DEFINED(SAM4S16C) \
mbed_official 582:53297373a894 831 )
mbed_official 582:53297373a894 832
mbed_official 582:53297373a894 833 #define SAM4SA16 ( \
mbed_official 582:53297373a894 834 SAM_PART_IS_DEFINED(SAM4SA16B) || \
mbed_official 582:53297373a894 835 SAM_PART_IS_DEFINED(SAM4SA16C) \
mbed_official 582:53297373a894 836 )
mbed_official 582:53297373a894 837
mbed_official 582:53297373a894 838 #define SAM4SD16 ( \
mbed_official 582:53297373a894 839 SAM_PART_IS_DEFINED(SAM4SD16B) || \
mbed_official 582:53297373a894 840 SAM_PART_IS_DEFINED(SAM4SD16C) \
mbed_official 582:53297373a894 841 )
mbed_official 582:53297373a894 842
mbed_official 582:53297373a894 843 #define SAM4SD32 ( \
mbed_official 582:53297373a894 844 SAM_PART_IS_DEFINED(SAM4SD32B) || \
mbed_official 582:53297373a894 845 SAM_PART_IS_DEFINED(SAM4SD32C) \
mbed_official 582:53297373a894 846 )
mbed_official 582:53297373a894 847 /** @} */
mbed_official 582:53297373a894 848
mbed_official 582:53297373a894 849 /**
mbed_official 582:53297373a894 850 * \name SAM4L series
mbed_official 582:53297373a894 851 * @{
mbed_official 582:53297373a894 852 */
mbed_official 582:53297373a894 853 #define SAM4LS ( \
mbed_official 582:53297373a894 854 SAM_PART_IS_DEFINED(SAM4LS2A) || \
mbed_official 582:53297373a894 855 SAM_PART_IS_DEFINED(SAM4LS2B) || \
mbed_official 582:53297373a894 856 SAM_PART_IS_DEFINED(SAM4LS2C) || \
mbed_official 582:53297373a894 857 SAM_PART_IS_DEFINED(SAM4LS4A) || \
mbed_official 582:53297373a894 858 SAM_PART_IS_DEFINED(SAM4LS4B) || \
mbed_official 582:53297373a894 859 SAM_PART_IS_DEFINED(SAM4LS4C) || \
mbed_official 582:53297373a894 860 SAM_PART_IS_DEFINED(SAM4LS8A) || \
mbed_official 582:53297373a894 861 SAM_PART_IS_DEFINED(SAM4LS8B) || \
mbed_official 582:53297373a894 862 SAM_PART_IS_DEFINED(SAM4LS8C) \
mbed_official 582:53297373a894 863 )
mbed_official 582:53297373a894 864
mbed_official 582:53297373a894 865 #define SAM4LC ( \
mbed_official 582:53297373a894 866 SAM_PART_IS_DEFINED(SAM4LC2A) || \
mbed_official 582:53297373a894 867 SAM_PART_IS_DEFINED(SAM4LC2B) || \
mbed_official 582:53297373a894 868 SAM_PART_IS_DEFINED(SAM4LC2C) || \
mbed_official 582:53297373a894 869 SAM_PART_IS_DEFINED(SAM4LC4A) || \
mbed_official 582:53297373a894 870 SAM_PART_IS_DEFINED(SAM4LC4B) || \
mbed_official 582:53297373a894 871 SAM_PART_IS_DEFINED(SAM4LC4C) || \
mbed_official 582:53297373a894 872 SAM_PART_IS_DEFINED(SAM4LC8A) || \
mbed_official 582:53297373a894 873 SAM_PART_IS_DEFINED(SAM4LC8B) || \
mbed_official 582:53297373a894 874 SAM_PART_IS_DEFINED(SAM4LC8C) \
mbed_official 582:53297373a894 875 )
mbed_official 582:53297373a894 876 /** @} */
mbed_official 582:53297373a894 877
mbed_official 582:53297373a894 878 /**
mbed_official 582:53297373a894 879 * \name SAMD20 series
mbed_official 582:53297373a894 880 * @{
mbed_official 582:53297373a894 881 */
mbed_official 582:53297373a894 882 #define SAMD20J ( \
mbed_official 582:53297373a894 883 SAM_PART_IS_DEFINED(SAMD20J14) || \
mbed_official 582:53297373a894 884 SAM_PART_IS_DEFINED(SAMD20J15) || \
mbed_official 582:53297373a894 885 SAM_PART_IS_DEFINED(SAMD20J16) || \
mbed_official 582:53297373a894 886 SAM_PART_IS_DEFINED(SAMD20J17) || \
mbed_official 582:53297373a894 887 SAM_PART_IS_DEFINED(SAMD20J18) \
mbed_official 582:53297373a894 888 )
mbed_official 582:53297373a894 889
mbed_official 582:53297373a894 890 #define SAMD20G ( \
mbed_official 582:53297373a894 891 SAM_PART_IS_DEFINED(SAMD20G14) || \
mbed_official 582:53297373a894 892 SAM_PART_IS_DEFINED(SAMD20G15) || \
mbed_official 582:53297373a894 893 SAM_PART_IS_DEFINED(SAMD20G16) || \
mbed_official 582:53297373a894 894 SAM_PART_IS_DEFINED(SAMD20G17) || \
mbed_official 582:53297373a894 895 SAM_PART_IS_DEFINED(SAMD20G17U) || \
mbed_official 582:53297373a894 896 SAM_PART_IS_DEFINED(SAMD20G18) || \
mbed_official 582:53297373a894 897 SAM_PART_IS_DEFINED(SAMD20G18U) \
mbed_official 582:53297373a894 898 )
mbed_official 582:53297373a894 899
mbed_official 582:53297373a894 900 #define SAMD20E ( \
mbed_official 582:53297373a894 901 SAM_PART_IS_DEFINED(SAMD20E14) || \
mbed_official 582:53297373a894 902 SAM_PART_IS_DEFINED(SAMD20E15) || \
mbed_official 582:53297373a894 903 SAM_PART_IS_DEFINED(SAMD20E16) || \
mbed_official 582:53297373a894 904 SAM_PART_IS_DEFINED(SAMD20E17) || \
mbed_official 582:53297373a894 905 SAM_PART_IS_DEFINED(SAMD20E18) || \
mbed_official 582:53297373a894 906 SAM_PART_IS_DEFINED(SAMD20E1F) \
mbed_official 582:53297373a894 907 )
mbed_official 582:53297373a894 908 /** @} */
mbed_official 582:53297373a894 909
mbed_official 582:53297373a894 910 /**
mbed_official 582:53297373a894 911 * \name SAMD21 series
mbed_official 582:53297373a894 912 * @{
mbed_official 582:53297373a894 913 */
mbed_official 582:53297373a894 914 #define SAMD21J ( \
mbed_official 582:53297373a894 915 SAM_PART_IS_DEFINED(SAMD21J15A) || \
mbed_official 582:53297373a894 916 SAM_PART_IS_DEFINED(SAMD21J16A) || \
mbed_official 582:53297373a894 917 SAM_PART_IS_DEFINED(SAMD21J17A) || \
mbed_official 582:53297373a894 918 SAM_PART_IS_DEFINED(SAMD21J18A) \
mbed_official 582:53297373a894 919 )
mbed_official 582:53297373a894 920
mbed_official 582:53297373a894 921 #define SAMD21G ( \
mbed_official 582:53297373a894 922 SAM_PART_IS_DEFINED(SAMD21G15A) || \
mbed_official 582:53297373a894 923 SAM_PART_IS_DEFINED(SAMD21G16A) || \
mbed_official 582:53297373a894 924 SAM_PART_IS_DEFINED(SAMD21G17A) || \
mbed_official 582:53297373a894 925 SAM_PART_IS_DEFINED(SAMD21G18A) \
mbed_official 582:53297373a894 926 )
mbed_official 582:53297373a894 927
mbed_official 582:53297373a894 928 #define SAMD21E ( \
mbed_official 582:53297373a894 929 SAM_PART_IS_DEFINED(SAMD21E15A) || \
mbed_official 582:53297373a894 930 SAM_PART_IS_DEFINED(SAMD21E16A) || \
mbed_official 582:53297373a894 931 SAM_PART_IS_DEFINED(SAMD21E17A) || \
mbed_official 582:53297373a894 932 SAM_PART_IS_DEFINED(SAMD21E18A) \
mbed_official 582:53297373a894 933 )
mbed_official 582:53297373a894 934 /** @} */
mbed_official 582:53297373a894 935
mbed_official 582:53297373a894 936 /**
mbed_official 582:53297373a894 937 * \name SAMR21 series
mbed_official 582:53297373a894 938 * @{
mbed_official 582:53297373a894 939 */
mbed_official 582:53297373a894 940 #define SAMR21G ( \
mbed_official 582:53297373a894 941 SAM_PART_IS_DEFINED(SAMR21G16A) || \
mbed_official 582:53297373a894 942 SAM_PART_IS_DEFINED(SAMR21G17A) || \
mbed_official 582:53297373a894 943 SAM_PART_IS_DEFINED(SAMR21G18A) \
mbed_official 582:53297373a894 944 )
mbed_official 582:53297373a894 945
mbed_official 582:53297373a894 946 #define SAMR21E ( \
mbed_official 582:53297373a894 947 SAM_PART_IS_DEFINED(SAMR21E16A) || \
mbed_official 582:53297373a894 948 SAM_PART_IS_DEFINED(SAMR21E17A) || \
mbed_official 582:53297373a894 949 SAM_PART_IS_DEFINED(SAMR21E18A) \
mbed_official 582:53297373a894 950 )
mbed_official 582:53297373a894 951 /** @} */
mbed_official 582:53297373a894 952
mbed_official 582:53297373a894 953 /**
mbed_official 582:53297373a894 954 * \name SAMD10 series
mbed_official 582:53297373a894 955 * @{
mbed_official 582:53297373a894 956 */
mbed_official 582:53297373a894 957 #define SAMD10C ( \
mbed_official 582:53297373a894 958 SAM_PART_IS_DEFINED(SAMD10C12A) || \
mbed_official 582:53297373a894 959 SAM_PART_IS_DEFINED(SAMD10C13A) || \
mbed_official 582:53297373a894 960 SAM_PART_IS_DEFINED(SAMD10C14A) \
mbed_official 582:53297373a894 961 )
mbed_official 582:53297373a894 962
mbed_official 582:53297373a894 963 #define SAMD10DS ( \
mbed_official 582:53297373a894 964 SAM_PART_IS_DEFINED(SAMD10D12AS) || \
mbed_official 582:53297373a894 965 SAM_PART_IS_DEFINED(SAMD10D13AS) || \
mbed_official 582:53297373a894 966 SAM_PART_IS_DEFINED(SAMD10D14AS) \
mbed_official 582:53297373a894 967 )
mbed_official 582:53297373a894 968
mbed_official 582:53297373a894 969 #define SAMD10DM ( \
mbed_official 582:53297373a894 970 SAM_PART_IS_DEFINED(SAMD10D12AM) || \
mbed_official 582:53297373a894 971 SAM_PART_IS_DEFINED(SAMD10D13AM) || \
mbed_official 582:53297373a894 972 SAM_PART_IS_DEFINED(SAMD10D14AM) \
mbed_official 582:53297373a894 973 )
mbed_official 582:53297373a894 974 /** @} */
mbed_official 582:53297373a894 975
mbed_official 582:53297373a894 976 /**
mbed_official 582:53297373a894 977 * \name SAMD11 series
mbed_official 582:53297373a894 978 * @{
mbed_official 582:53297373a894 979 */
mbed_official 582:53297373a894 980 #define SAMD11C ( \
mbed_official 582:53297373a894 981 SAM_PART_IS_DEFINED(SAMD11C14A) \
mbed_official 582:53297373a894 982 )
mbed_official 582:53297373a894 983
mbed_official 582:53297373a894 984 #define SAMD11DS ( \
mbed_official 582:53297373a894 985 SAM_PART_IS_DEFINED(SAMD11D14AS) \
mbed_official 582:53297373a894 986 )
mbed_official 582:53297373a894 987
mbed_official 582:53297373a894 988 #define SAMD11DM ( \
mbed_official 582:53297373a894 989 SAM_PART_IS_DEFINED(SAMD11D14AM) \
mbed_official 582:53297373a894 990 )
mbed_official 582:53297373a894 991 /** @} */
mbed_official 582:53297373a894 992
mbed_official 582:53297373a894 993 /**
mbed_official 582:53297373a894 994 * \name SAML21 series
mbed_official 582:53297373a894 995 * @{
mbed_official 582:53297373a894 996 */
mbed_official 582:53297373a894 997 #define SAML21E ( \
mbed_official 582:53297373a894 998 SAM_PART_IS_DEFINED(SAML21E15A) || \
mbed_official 582:53297373a894 999 SAM_PART_IS_DEFINED(SAML21E16A) || \
mbed_official 582:53297373a894 1000 SAM_PART_IS_DEFINED(SAML21E17A) || \
mbed_official 582:53297373a894 1001 SAM_PART_IS_DEFINED(SAML21E18A) \
mbed_official 582:53297373a894 1002 )
mbed_official 582:53297373a894 1003
mbed_official 582:53297373a894 1004 #define SAML21G ( \
mbed_official 582:53297373a894 1005 SAM_PART_IS_DEFINED(SAML21G16A) || \
mbed_official 582:53297373a894 1006 SAM_PART_IS_DEFINED(SAML21G17A) || \
mbed_official 582:53297373a894 1007 SAM_PART_IS_DEFINED(SAML21G18A) \
mbed_official 582:53297373a894 1008 )
mbed_official 582:53297373a894 1009
mbed_official 582:53297373a894 1010 #define SAML21J ( \
mbed_official 582:53297373a894 1011 SAM_PART_IS_DEFINED(SAML21J16A) || \
mbed_official 582:53297373a894 1012 SAM_PART_IS_DEFINED(SAML21J17A) || \
mbed_official 582:53297373a894 1013 SAM_PART_IS_DEFINED(SAML21J18A) \
mbed_official 582:53297373a894 1014 )
mbed_official 582:53297373a894 1015 /** @} */
mbed_official 582:53297373a894 1016
mbed_official 582:53297373a894 1017 /**
mbed_official 582:53297373a894 1018 * \name SAM4E series
mbed_official 582:53297373a894 1019 * @{
mbed_official 582:53297373a894 1020 */
mbed_official 582:53297373a894 1021 #define SAM4E8 ( \
mbed_official 582:53297373a894 1022 SAM_PART_IS_DEFINED(SAM4E8C) || \
mbed_official 582:53297373a894 1023 SAM_PART_IS_DEFINED(SAM4E8E) \
mbed_official 582:53297373a894 1024 )
mbed_official 582:53297373a894 1025
mbed_official 582:53297373a894 1026 #define SAM4E16 ( \
mbed_official 582:53297373a894 1027 SAM_PART_IS_DEFINED(SAM4E16C) || \
mbed_official 582:53297373a894 1028 SAM_PART_IS_DEFINED(SAM4E16E) \
mbed_official 582:53297373a894 1029 )
mbed_official 582:53297373a894 1030 /** @} */
mbed_official 582:53297373a894 1031
mbed_official 582:53297373a894 1032 /**
mbed_official 582:53297373a894 1033 * \name SAM4N series
mbed_official 582:53297373a894 1034 * @{
mbed_official 582:53297373a894 1035 */
mbed_official 582:53297373a894 1036 #define SAM4N8 ( \
mbed_official 582:53297373a894 1037 SAM_PART_IS_DEFINED(SAM4N8A) || \
mbed_official 582:53297373a894 1038 SAM_PART_IS_DEFINED(SAM4N8B) || \
mbed_official 582:53297373a894 1039 SAM_PART_IS_DEFINED(SAM4N8C) \
mbed_official 582:53297373a894 1040 )
mbed_official 582:53297373a894 1041
mbed_official 582:53297373a894 1042 #define SAM4N16 ( \
mbed_official 582:53297373a894 1043 SAM_PART_IS_DEFINED(SAM4N16B) || \
mbed_official 582:53297373a894 1044 SAM_PART_IS_DEFINED(SAM4N16C) \
mbed_official 582:53297373a894 1045 )
mbed_official 582:53297373a894 1046 /** @} */
mbed_official 582:53297373a894 1047
mbed_official 582:53297373a894 1048 /**
mbed_official 582:53297373a894 1049 * \name SAM4C series
mbed_official 582:53297373a894 1050 * @{
mbed_official 582:53297373a894 1051 */
mbed_official 582:53297373a894 1052 #define SAM4C8_0 ( \
mbed_official 582:53297373a894 1053 SAM_PART_IS_DEFINED(SAM4C8C_0) \
mbed_official 582:53297373a894 1054 )
mbed_official 582:53297373a894 1055
mbed_official 582:53297373a894 1056 #define SAM4C8_1 ( \
mbed_official 582:53297373a894 1057 SAM_PART_IS_DEFINED(SAM4C8C_1) \
mbed_official 582:53297373a894 1058 )
mbed_official 582:53297373a894 1059
mbed_official 582:53297373a894 1060 #define SAM4C8 (SAM4C8_0 || SAM4C8_1)
mbed_official 582:53297373a894 1061
mbed_official 582:53297373a894 1062 #define SAM4C16_0 ( \
mbed_official 582:53297373a894 1063 SAM_PART_IS_DEFINED(SAM4C16C_0) \
mbed_official 582:53297373a894 1064 )
mbed_official 582:53297373a894 1065
mbed_official 582:53297373a894 1066 #define SAM4C16_1 ( \
mbed_official 582:53297373a894 1067 SAM_PART_IS_DEFINED(SAM4C16C_1) \
mbed_official 582:53297373a894 1068 )
mbed_official 582:53297373a894 1069
mbed_official 582:53297373a894 1070 #define SAM4C16 (SAM4C16_0 || SAM4C16_1)
mbed_official 582:53297373a894 1071
mbed_official 582:53297373a894 1072 #define SAM4C32_0 ( \
mbed_official 582:53297373a894 1073 SAM_PART_IS_DEFINED(SAM4C32C_0) ||\
mbed_official 582:53297373a894 1074 SAM_PART_IS_DEFINED(SAM4C32E_0) \
mbed_official 582:53297373a894 1075 )
mbed_official 582:53297373a894 1076
mbed_official 582:53297373a894 1077 #define SAM4C32_1 ( \
mbed_official 582:53297373a894 1078 SAM_PART_IS_DEFINED(SAM4C32C_1) ||\
mbed_official 582:53297373a894 1079 SAM_PART_IS_DEFINED(SAM4C32E_1) \
mbed_official 582:53297373a894 1080 )
mbed_official 582:53297373a894 1081
mbed_official 582:53297373a894 1082
mbed_official 582:53297373a894 1083 #define SAM4C32 (SAM4C32_0 || SAM4C32_1)
mbed_official 582:53297373a894 1084
mbed_official 582:53297373a894 1085 /** @} */
mbed_official 582:53297373a894 1086
mbed_official 582:53297373a894 1087 /**
mbed_official 582:53297373a894 1088 * \name SAM4CM series
mbed_official 582:53297373a894 1089 * @{
mbed_official 582:53297373a894 1090 */
mbed_official 582:53297373a894 1091 #define SAM4CMP8_0 ( \
mbed_official 582:53297373a894 1092 SAM_PART_IS_DEFINED(SAM4CMP8C_0) \
mbed_official 582:53297373a894 1093 )
mbed_official 582:53297373a894 1094
mbed_official 582:53297373a894 1095 #define SAM4CMP8_1 ( \
mbed_official 582:53297373a894 1096 SAM_PART_IS_DEFINED(SAM4CMP8C_1) \
mbed_official 582:53297373a894 1097 )
mbed_official 582:53297373a894 1098
mbed_official 582:53297373a894 1099 #define SAM4CMP8 (SAM4CMP8_0 || SAM4CMP8_1)
mbed_official 582:53297373a894 1100
mbed_official 582:53297373a894 1101 #define SAM4CMP16_0 ( \
mbed_official 582:53297373a894 1102 SAM_PART_IS_DEFINED(SAM4CMP16C_0) \
mbed_official 582:53297373a894 1103 )
mbed_official 582:53297373a894 1104
mbed_official 582:53297373a894 1105 #define SAM4CMP16_1 ( \
mbed_official 582:53297373a894 1106 SAM_PART_IS_DEFINED(SAM4CMP16C_1) \
mbed_official 582:53297373a894 1107 )
mbed_official 582:53297373a894 1108
mbed_official 582:53297373a894 1109 #define SAM4CMP16 (SAM4CMP16_0 || SAM4CMP16_1)
mbed_official 582:53297373a894 1110
mbed_official 582:53297373a894 1111 #define SAM4CMP32_0 ( \
mbed_official 582:53297373a894 1112 SAM_PART_IS_DEFINED(SAM4CMP32C_0) \
mbed_official 582:53297373a894 1113 )
mbed_official 582:53297373a894 1114
mbed_official 582:53297373a894 1115 #define SAM4CMP32_1 ( \
mbed_official 582:53297373a894 1116 SAM_PART_IS_DEFINED(SAM4CMP32C_1) \
mbed_official 582:53297373a894 1117 )
mbed_official 582:53297373a894 1118
mbed_official 582:53297373a894 1119 #define SAM4CMP32 (SAM4CMP32_0 || SAM4CMP32_1)
mbed_official 582:53297373a894 1120
mbed_official 582:53297373a894 1121 #define SAM4CMS8_0 ( \
mbed_official 582:53297373a894 1122 SAM_PART_IS_DEFINED(SAM4CMS8C_0) \
mbed_official 582:53297373a894 1123 )
mbed_official 582:53297373a894 1124
mbed_official 582:53297373a894 1125 #define SAM4CMS8_1 ( \
mbed_official 582:53297373a894 1126 SAM_PART_IS_DEFINED(SAM4CMS8C_1) \
mbed_official 582:53297373a894 1127 )
mbed_official 582:53297373a894 1128
mbed_official 582:53297373a894 1129 #define SAM4CMS8 (SAM4CMS8_0 || SAM4CMS8_1)
mbed_official 582:53297373a894 1130
mbed_official 582:53297373a894 1131 #define SAM4CMS16_0 ( \
mbed_official 582:53297373a894 1132 SAM_PART_IS_DEFINED(SAM4CMS16C_0) \
mbed_official 582:53297373a894 1133 )
mbed_official 582:53297373a894 1134
mbed_official 582:53297373a894 1135 #define SAM4CMS16_1 ( \
mbed_official 582:53297373a894 1136 SAM_PART_IS_DEFINED(SAM4CMS16C_1) \
mbed_official 582:53297373a894 1137 )
mbed_official 582:53297373a894 1138
mbed_official 582:53297373a894 1139 #define SAM4CMS16 (SAM4CMS16_0 || SAM4CMS16_1)
mbed_official 582:53297373a894 1140
mbed_official 582:53297373a894 1141 #define SAM4CMS32_0 ( \
mbed_official 582:53297373a894 1142 SAM_PART_IS_DEFINED(SAM4CMS32C_0) \
mbed_official 582:53297373a894 1143 )
mbed_official 582:53297373a894 1144
mbed_official 582:53297373a894 1145 #define SAM4CMS32_1 ( \
mbed_official 582:53297373a894 1146 SAM_PART_IS_DEFINED(SAM4CMS32C_1) \
mbed_official 582:53297373a894 1147 )
mbed_official 582:53297373a894 1148
mbed_official 582:53297373a894 1149 #define SAM4CMS32 (SAM4CMS32_0 || SAM4CMS32_1)
mbed_official 582:53297373a894 1150
mbed_official 582:53297373a894 1151 /** @} */
mbed_official 582:53297373a894 1152
mbed_official 582:53297373a894 1153 /**
mbed_official 582:53297373a894 1154 * \name SAM4CP series
mbed_official 582:53297373a894 1155 * @{
mbed_official 582:53297373a894 1156 */
mbed_official 582:53297373a894 1157 #define SAM4CP16_0 ( \
mbed_official 582:53297373a894 1158 SAM_PART_IS_DEFINED(SAM4CP16B_0) \
mbed_official 582:53297373a894 1159 )
mbed_official 582:53297373a894 1160
mbed_official 582:53297373a894 1161 #define SAM4CP16_1 ( \
mbed_official 582:53297373a894 1162 SAM_PART_IS_DEFINED(SAM4CP16B_1) \
mbed_official 582:53297373a894 1163 )
mbed_official 582:53297373a894 1164
mbed_official 582:53297373a894 1165 #define SAM4CP16 (SAM4CP16_0 || SAM4CP16_1)
mbed_official 582:53297373a894 1166 /** @} */
mbed_official 582:53297373a894 1167
mbed_official 582:53297373a894 1168 /**
mbed_official 582:53297373a894 1169 * \name SAMG series
mbed_official 582:53297373a894 1170 * @{
mbed_official 582:53297373a894 1171 */
mbed_official 582:53297373a894 1172 #define SAMG51 ( \
mbed_official 582:53297373a894 1173 SAM_PART_IS_DEFINED(SAMG51G18) \
mbed_official 582:53297373a894 1174 )
mbed_official 582:53297373a894 1175
mbed_official 582:53297373a894 1176 #define SAMG53 ( \
mbed_official 582:53297373a894 1177 SAM_PART_IS_DEFINED(SAMG53G19) ||\
mbed_official 582:53297373a894 1178 SAM_PART_IS_DEFINED(SAMG53N19) \
mbed_official 582:53297373a894 1179 )
mbed_official 582:53297373a894 1180
mbed_official 582:53297373a894 1181 #define SAMG54 ( \
mbed_official 582:53297373a894 1182 SAM_PART_IS_DEFINED(SAMG54G19) ||\
mbed_official 582:53297373a894 1183 SAM_PART_IS_DEFINED(SAMG54J19) ||\
mbed_official 582:53297373a894 1184 SAM_PART_IS_DEFINED(SAMG54N19) \
mbed_official 582:53297373a894 1185 )
mbed_official 582:53297373a894 1186
mbed_official 582:53297373a894 1187 #define SAMG55 ( \
mbed_official 582:53297373a894 1188 SAM_PART_IS_DEFINED(SAMG55G18) ||\
mbed_official 582:53297373a894 1189 SAM_PART_IS_DEFINED(SAMG55G19) ||\
mbed_official 582:53297373a894 1190 SAM_PART_IS_DEFINED(SAMG55J18) ||\
mbed_official 582:53297373a894 1191 SAM_PART_IS_DEFINED(SAMG55J19) ||\
mbed_official 582:53297373a894 1192 SAM_PART_IS_DEFINED(SAMG55N19) \
mbed_official 582:53297373a894 1193 )
mbed_official 582:53297373a894 1194 /** @} */
mbed_official 582:53297373a894 1195 /**
mbed_official 582:53297373a894 1196 * \name SAM families
mbed_official 582:53297373a894 1197 * @{
mbed_official 582:53297373a894 1198 */
mbed_official 582:53297373a894 1199 /** SAM3S Family */
mbed_official 582:53297373a894 1200 #define SAM3S (SAM3S1 || SAM3S2 || SAM3S4 || SAM3S8 || SAM3SD8)
mbed_official 582:53297373a894 1201
mbed_official 582:53297373a894 1202 /** SAM3U Family */
mbed_official 582:53297373a894 1203 #define SAM3U (SAM3U1 || SAM3U2 || SAM3U4)
mbed_official 582:53297373a894 1204
mbed_official 582:53297373a894 1205 /** SAM3N Family */
mbed_official 582:53297373a894 1206 #define SAM3N (SAM3N00 || SAM3N0 || SAM3N1 || SAM3N2 || SAM3N4)
mbed_official 582:53297373a894 1207
mbed_official 582:53297373a894 1208 /** SAM3XA Family */
mbed_official 582:53297373a894 1209 #define SAM3XA (SAM3X4 || SAM3X8 || SAM3A4 || SAM3A8)
mbed_official 582:53297373a894 1210
mbed_official 582:53297373a894 1211 /** SAM4S Family */
mbed_official 582:53297373a894 1212 #define SAM4S (SAM4S2 || SAM4S4 || SAM4S8 || SAM4S16 || SAM4SA16 || SAM4SD16 || SAM4SD32)
mbed_official 582:53297373a894 1213
mbed_official 582:53297373a894 1214 /** SAM4L Family */
mbed_official 582:53297373a894 1215 #define SAM4L (SAM4LS || SAM4LC)
mbed_official 582:53297373a894 1216
mbed_official 582:53297373a894 1217 /** SAMD20 Family */
mbed_official 582:53297373a894 1218 #define SAMD20 (SAMD20J || SAMD20G || SAMD20E)
mbed_official 582:53297373a894 1219
mbed_official 582:53297373a894 1220 /** SAMD21 Family */
mbed_official 582:53297373a894 1221 #define SAMD21 (SAMD21J || SAMD21G || SAMD21E)
mbed_official 582:53297373a894 1222
mbed_official 582:53297373a894 1223 /** SAMD10 Family */
mbed_official 582:53297373a894 1224 #define SAMD10 (SAMD10C || SAMD10DS || SAMD10DM)
mbed_official 582:53297373a894 1225
mbed_official 582:53297373a894 1226 /** SAMD11 Family */
mbed_official 582:53297373a894 1227 #define SAMD11 (SAMD11C || SAMD11DS || SAMD11DM)
mbed_official 582:53297373a894 1228
mbed_official 582:53297373a894 1229 /** SAMD Family */
mbed_official 582:53297373a894 1230 #define SAMD (SAMD20 || SAMD21 || SAMD10 || SAMD11)
mbed_official 582:53297373a894 1231
mbed_official 582:53297373a894 1232 /** SAMR21 Family */
mbed_official 582:53297373a894 1233 #define SAMR21 (SAMR21G || SAMR21E)
mbed_official 582:53297373a894 1234
mbed_official 582:53297373a894 1235 /** SAML21 Family */
mbed_official 582:53297373a894 1236 #define SAML21 (SAML21J || SAML21G || SAML21E)
mbed_official 582:53297373a894 1237
mbed_official 582:53297373a894 1238 /** SAM4E Family */
mbed_official 582:53297373a894 1239 #define SAM4E (SAM4E8 || SAM4E16)
mbed_official 582:53297373a894 1240
mbed_official 582:53297373a894 1241 /** SAM4N Family */
mbed_official 582:53297373a894 1242 #define SAM4N (SAM4N8 || SAM4N16)
mbed_official 582:53297373a894 1243
mbed_official 582:53297373a894 1244 /** SAM4C Family */
mbed_official 582:53297373a894 1245 #define SAM4C_0 (SAM4C8_0 || SAM4C16_0 || SAM4C32_0)
mbed_official 582:53297373a894 1246 #define SAM4C_1 (SAM4C8_1 || SAM4C16_1 || SAM4C32_1)
mbed_official 582:53297373a894 1247 #define SAM4C (SAM4C8 || SAM4C16 || SAM4C32)
mbed_official 582:53297373a894 1248
mbed_official 582:53297373a894 1249 /** SAM4CM Family */
mbed_official 582:53297373a894 1250 #define SAM4CM_0 (SAM4CMP8_0 || SAM4CMP16_0 || SAM4CMP32_0 || SAM4CMS8_0 || \
mbed_official 582:53297373a894 1251 SAM4CMS16_0 || SAM4CMS32_0)
mbed_official 582:53297373a894 1252 #define SAM4CM_1 (SAM4CMP8_1 || SAM4CMP16_1 || SAM4CMP32_1 || SAM4CMS8_1 || \
mbed_official 582:53297373a894 1253 SAM4CMS16_1 || SAM4CMS32_1)
mbed_official 582:53297373a894 1254 #define SAM4CM (SAM4CMP8 || SAM4CMP16 || SAM4CMP32 || SAM4CMS8 || \
mbed_official 582:53297373a894 1255 SAM4CMS16 || SAM4CMS32)
mbed_official 582:53297373a894 1256
mbed_official 582:53297373a894 1257 /** SAM4CP Family */
mbed_official 582:53297373a894 1258 #define SAM4CP_0 (SAM4CP16_0)
mbed_official 582:53297373a894 1259 #define SAM4CP_1 (SAM4CP16_1)
mbed_official 582:53297373a894 1260 #define SAM4CP (SAM4CP16)
mbed_official 582:53297373a894 1261
mbed_official 582:53297373a894 1262 /** SAMG Family */
mbed_official 582:53297373a894 1263 #define SAMG (SAMG51 || SAMG53 || SAMG54 || SAMG55)
mbed_official 582:53297373a894 1264
mbed_official 582:53297373a894 1265 /** SAM0 product line (cortex-m0+) */
mbed_official 582:53297373a894 1266 #define SAM0 (SAMD20 || SAMD21 || SAMR21 || SAMD10 || SAMD11 || SAML21)
mbed_official 582:53297373a894 1267
mbed_official 582:53297373a894 1268 /** @} */
mbed_official 582:53297373a894 1269
mbed_official 582:53297373a894 1270 /** SAM product line */
mbed_official 582:53297373a894 1271 #define SAM (SAM3S || SAM3U || SAM3N || SAM3XA || SAM4S || SAM4L || SAM4E || \
mbed_official 582:53297373a894 1272 SAM0 || SAM4N || SAM4C || SAM4CM || SAM4CP || SAMG)
mbed_official 582:53297373a894 1273
mbed_official 582:53297373a894 1274 /** @} */
mbed_official 582:53297373a894 1275
mbed_official 582:53297373a894 1276 /** @} */
mbed_official 582:53297373a894 1277
mbed_official 582:53297373a894 1278 /** @} */
mbed_official 582:53297373a894 1279
mbed_official 582:53297373a894 1280 #endif /* ATMEL_PARTS_H */