MAV'RIC
|
00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00017 /* Copyright (C) 2010 Atmel Corporation. All rights reserved. 00018 * 00019 * \page License 00020 * 00021 * Redistribution and use in source and binary forms, with or without 00022 * modification, are permitted provided that the following conditions are met: 00023 * 00024 * 1. Redistributions of source code must retain the above copyright notice, 00025 * this list of conditions and the following disclaimer. 00026 * 00027 * 2. Redistributions in binary form must reproduce the above copyright notice, 00028 * this list of conditions and the following disclaimer in the documentation 00029 * and/or other materials provided with the distribution. 00030 * 00031 * 3. The name of Atmel may not be used to endorse or promote products derived 00032 * from this software without specific prior written permission. 00033 * 00034 * 4. This software may only be redistributed and used in connection with an 00035 * Atmel AVR product. 00036 * 00037 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00038 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00039 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00040 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00041 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00042 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00043 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00044 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00045 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00046 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 00047 * DAMAGE. 00048 */ 00049 #ifndef _CONF_TWIM_H 00050 #define _CONF_TWIM_H 00051 00052 #ifdef __cplusplus 00053 extern "C" 00054 { 00055 #endif 00056 00057 #include "libs/asf/common/boards/board.h" 00058 00059 00060 #if UC3C 00061 // These defines are missing from or wrong in the toolchain header file ip_xxx.h or part.h 00062 # if !defined(AVR32_TWIM0_GROUP) 00063 # define AVR32_TWIM0_GROUP 25 00064 # else 00065 # warning "Duplicate define(s) to remove from the ASF" 00066 # endif 00067 # if !defined(AVR32_TWIM1_GROUP) 00068 # define AVR32_TWIM1_GROUP 26 00069 # else 00070 # warning "Duplicate define(s) to remove from the ASF" 00071 # endif 00072 # if !defined(AVR32_TWIM2_GROUP) 00073 # define AVR32_TWIM2_GROUP 45 00074 # else 00075 # warning "Duplicate define(s) to remove from the ASF" 00076 # endif 00077 # define CONF_TWIM_IRQ_LINE AVR32_TWIM0_IRQ 00078 # define CONF_TWIM_IRQ_GROUP AVR32_TWIM0_GROUP 00079 # define CONF_TWIM_IRQ_LEVEL 1 00080 #elif UC3A3 00081 // These defines are missing from or wrong in the toolchain header file ip_xxx.h or part.h 00082 # if !defined(AVR32_TWIM0_GROUP) 00083 # define AVR32_TWIM0_GROUP 11 00084 # else 00085 # warning "Duplicate define(s) to remove from the ASF" 00086 # endif 00087 # if !defined(AVR32_TWIM1_GROUP) 00088 # define AVR32_TWIM1_GROUP 12 00089 # else 00090 # warning "Duplicate define(s) to remove from the ASF" 00091 # endif 00092 # define CONF_TWIM_IRQ_LINE AVR32_TWIM0_IRQ 00093 # define CONF_TWIM_IRQ_GROUP AVR32_TWIM0_GROUP 00094 # define CONF_TWIM_IRQ_LEVEL 1 00095 #elif UC3L 00096 // These defines are missing from or wrong in the toolchain header file ip_xxx.h or part.h 00097 # if !defined(AVR32_TWIM0_GROUP) 00098 # define AVR32_TWIM0_GROUP 20 00099 # else 00100 # warning "Duplicate define(s) to remove from the ASF" 00101 # endif 00102 # if !defined(AVR32_TWIM1_GROUP) 00103 # define AVR32_TWIM1_GROUP 21 00104 # else 00105 # warning "Duplicate define(s) to remove from the ASF" 00106 # endif 00107 # define CONF_TWIM_IRQ_LINE AVR32_TWIM0_IRQ 00108 # define CONF_TWIM_IRQ_GROUP AVR32_TWIM0_GROUP 00109 # define CONF_TWIM_IRQ_LEVEL 1 00110 #else 00111 # error MCU Not Supported 00112 #endif 00113 00114 #ifdef __cplusplus 00115 } 00116 #endif 00117 00118 #endif // _CONF_TWIM_H