mbed library sources

Fork of mbed-src by mbed official

Committer:
lzbpli
Date:
Thu Jul 07 06:48:59 2016 +0000
Revision:
636:b0d178e9fa10
Parent:
592:a274ee790e56
l053

Who changed what in which revision?

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