Pages: [1]   Go Down
Author Topic: Due MCU name for #ifndef statement?  (Read 495 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't seem to find this information in any conveniently accessible location, was hoping someone on here could help me out.

I'm updating a program to add support for the Due, and I need to do some be able to tell which MCU I'm compiling for.  What is the MCU name for the Sam3 on the Due (ie, for an #ifdef statement looking a Mega2560, i would use "__AVR_ATmega2560__")?  Also, where would I find this information more quickly in the future if I wanted to add support for some other hypothetical future chip?

Thank you!
Logged

Earth
Offline Offline
Sr. Member
****
Karma: 14
Posts: 325
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

__SAM3X8E__
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Many thanks!  That took care of that issue!!
Logged

Pages: [1]   Go Up
Jump to: