SWARM-Bot Firmware  v1.0
Mobile robot OS - Embedded C/C++
Atmel part identification macros
Collaboration diagram for Atmel part identification macros:

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 ## __))
 

Detailed Description

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.