Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Atmel part identification macros

This collection of macros identify which series and families that the various Atmel parts belong to.

These can be used to select part-dependent sections of code at compile time.

Modules

 AVR UC3 parts
 
 AVR XMEGA parts
 
 megaAVR parts
 
 SAM parts
 

Convenience macros for part checking

#define AVR8_PART_IS_DEFINED(part)   (defined(__ ## part ## __) || defined(__AVR_ ## part ## __))
 
#define AVR32_PART_IS_DEFINED(part)   (defined(__AT32 ## part ## __) || defined(__AVR32_ ## part ## __))
 
#define SAM_PART_IS_DEFINED(part)   (defined(__ ## part ## __))
 

#define AVR32_PART_IS_DEFINED (   part)    (defined(__AT32 ## part ## __) || defined(__AVR32_ ## part ## __))
#define AVR8_PART_IS_DEFINED (   part)    (defined(__ ## part ## __) || defined(__AVR_ ## part ## __))
#define SAM_PART_IS_DEFINED (   part)    (defined(__ ## part ## __))