123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- /* This header file is part of the ATMEL AVR-UC3-SoftwareFramework-1.7.0 Release */
- /*This file is prepared for Doxygen automatic documentation generation.*/
- /*! \file *********************************************************************
- *
- * \brief Arch file for AVR32.
- *
- * This file defines common AVR32 UC3 series.
- *
- * - Compiler: IAR EWAVR32 and GNU GCC for AVR32
- * - Supported devices: All AVR32 devices can be used.
- * - AppNote:
- *
- * \author Atmel Corporation: http://www.atmel.com \n
- * Support and FAQ: http://support.atmel.no/
- *
- ******************************************************************************/
- /* Copyright (c) 2009 Atmel Corporation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The name of Atmel may not be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * 4. This software may only be redistributed and used in connection with an Atmel
- * AVR product.
- *
- * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
- * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
- *
- */
- #ifndef _ARCH_H_
- #define _ARCH_H_
- // UC3 A Series
- #define UC3A0 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3A0128__) || \
- defined (__AVR32_UC3A0256__) || \
- defined (__AVR32_UC3A0512__) || \
- defined (__AVR32_UC3A0512ES__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3A0128__) || \
- defined (__AT32UC3A0256__) || \
- defined (__AT32UC3A0512__) || \
- defined (__AT32UC3A0512ES__)))
-
- #define UC3A1 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3A1128__) || \
- defined (__AVR32_UC3A1256__) || \
- defined (__AVR32_UC3A1512__) || \
- defined (__AVR32_UC3A1512ES__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3A1128__) || \
- defined (__AT32UC3A1256__) || \
- defined (__AT32UC3A1512__) || \
- defined (__AT32UC3A1512ES__)))
-
- #define UC3A3 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3A364__) || \
- defined (__AVR32_UC3A364S__) || \
- defined (__AVR32_UC3A3128__) || \
- defined (__AVR32_UC3A3128S__) || \
- defined (__AVR32_UC3A3256__) || \
- defined (__AVR32_UC3A3256S__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3A364__) || \
- defined (__AT32UC3A364S__) || \
- defined (__AT32UC3A3128__) || \
- defined (__AT32UC3A3128S__) || \
- defined (__AT32UC3A3256__) || \
- defined (__AT32UC3A3256S__)))
-
- #define UC3A (UC3A0 || UC3A1 || UC3A3)
- // UC3 B Series
- #define UC3B0 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3B064__) || \
- defined (__AVR32_UC3B0128__) || \
- defined (__AVR32_UC3B0256__) || \
- defined (__AVR32_UC3B0256ES__) || \
- defined (__AVR32_UC3B0512__) || \
- defined (__AVR32_UC3B0512REVC_))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3B064__) || \
- defined (__AT32UC3B0128__) || \
- defined (__AT32UC3B0256__) || \
- defined (__AT32UC3B0256ES__) || \
- defined (__AT32UC3B0512__) || \
- defined (__AT32UC3B0512REVC__)))
- #define UC3B1 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3B164__) || \
- defined (__AVR32_UC3B1128__) || \
- defined (__AVR32_UC3B1256__) || \
- defined (__AVR32_UC3B1256ES__) || \
- defined (__AVR32_UC3B1512__) || \
- defined (__AVR32_UC3B1512ES__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3B164__) || \
- defined (__AT32UC3B1128__) || \
- defined (__AT32UC3B1256__) || \
- defined (__AT32UC3B1256ES__) || \
- defined (__AT32UC3B1512__) || \
- defined (__AT32UC3B1512REVC__)))
- #define UC3B (UC3B0 || UC3B1 )
- // UC3 C Series
- #define UC3C0 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3C064C__) || \
- defined (__AVR32_UC3C0128C__) || \
- defined (__AVR32_UC3C0256C__) || \
- defined (__AVR32_UC3C0512CREVC__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3C064C__) || \
- defined (__AT32UC3C0128C__) || \
- defined (__AT32UC3C0256C__) || \
- defined (__AT32UC3C0512C__)))
-
- #define UC3C1 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3C164C__) || \
- defined (__AVR32_UC3C1128C__) || \
- defined (__AVR32_UC3C1256C__) || \
- defined (__AVR32_UC3C1512CREVC__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3C164C__) || \
- defined (__AT32UC3C1128C__) || \
- defined (__AT32UC3C1256C__) || \
- defined (__AT32UC3C1512C__)))
-
- #define UC3C2 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3C264C__) || \
- defined (__AVR32_UC3C2128C__) || \
- defined (__AVR32_UC3C2256C__) || \
- defined (__AVR32_UC3C2512CREVC__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3C264C__) || \
- defined (__AT32UC3C2128C__) || \
- defined (__AT32UC3C2256C__) || \
- defined (__AT32UC3C2512C__)))
- #define UC3C (UC3C0 || UC3C1 || UC3C2)
- // UC3 L Device series
- #define UC3L0 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3L016__) || \
- defined (__AVR32_UC3L032__) || \
- defined (__AVR32_UC3L064__) || \
- defined (__AVR32_UC3L064REVB__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3L016__) || \
- defined (__AT32UC3L032__) || \
- defined (__AT32UC3L064__) || \
- defined (__AT32UC3L064REVB__)))
-
- #define UC3L1 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3L116__) || \
- defined (__AVR32_UC3L132__) || \
- defined (__AVR32_UC3L164__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3L116__) || \
- defined (__AT32UC3L132__) || \
- defined (__AT32UC3L164__)))
-
- #define UC3L2 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3L216__) || \
- defined (__AVR32_UC3L232__) || \
- defined (__AVR32_UC3L264__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3L216__) || \
- defined (__AT32UC3L232__) || \
- defined (__AT32UC3L264__)))
-
- #define UC3L3 ( defined (__GNUC__) && \
- ( defined (__AVR32_UC3L316__) || \
- defined (__AVR32_UC3L332__) || \
- defined (__AVR32_UC3L364__))) \
- ||((defined(__ICCAVR32__) || defined(__AAVR32__)) && \
- ( defined (__AT32UC3L316__) || \
- defined (__AT32UC3L332__) || \
- defined (__AT32UC3L364__)))
- #define UC3L (UC3L0 || UC3L1 || UC3L2 || UC3L3)
- #endif // _ARCH_H_
|