00001 /**************************************************************************** 00002 * This file is part of the Ethernut port for the LPC2XXX 00003 * 00004 * Copyright (c) 2005 by Michael Fischer. All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 00010 * 1. Redistributions of source code must retain the above copyright 00011 * notice, this list of conditions and the following disclaimer. 00012 * 2. Redistributions in binary form must reproduce the above copyright 00013 * notice, this list of conditions and the following disclaimer in the 00014 * documentation and/or other materials provided with the distribution. 00015 * 3. Neither the name of the author nor the names of its contributors may 00016 * be used to endorse or promote products derived from this software 00017 * without specific prior written permission. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00020 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00021 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00022 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 00023 * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00024 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00025 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 00026 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 00027 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00028 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 00029 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00030 * SUCH DAMAGE. 00031 * 00032 **************************************************************************** 00033 * 00034 * History: 00035 * 00036 * 24.09.05 mifi First Version 00037 * The CrossWorks for ARM toolchain will be used. 00038 ****************************************************************************/ 00039 #ifndef __LPC2XXX_H__ 00040 #define __LPC2XXX_H__ 00041 00042 /* 00043 * Include the header file for the lpc22xx, from CrossWorks 00044 */ 00045 #include <targets/lpc22xx.h> 00046 00047 /* 00048 * For the Debug macro we must include cross_studio_io.h 00049 */ 00050 #define Debug debug_printf 00051 00052 #define VIC_WDT 0 00053 #define VIC_TIMER0 4 00054 #define VIC_TIMER1 5 00055 #define VIC_UART0 6 00056 #define VIC_UART1 7 00057 #define VIC_PWM0 8 00058 #define VIC_I2C 9 00059 #define VIC_SPI0 10 00060 #define VIC_SPI1 11 00061 #define VIC_PLL 12 00062 #define VIC_RTC 13 00063 #define VIC_EINT0 14 00064 #define VIC_EINT1 15 00065 #define VIC_EINT2 16 00066 #define VIC_EINT3 17 00067 00068 #define IRQ_ENTRY() 00069 #define IRQ_EXIT() 00070 00078 #define strcasecmp(s1, s2) strcmp(s1, s2) 00079 #define strncasecmp(s1, s2, n) strncmp(s1, s2, n) 00080 00081 #endif /* __LPC2XXX_H__ */ 00082 /*** EOF ***/ 00083