Nut/OS  5.0.5
API Reference
ksk_lpc1788_sk.h
Go to the documentation of this file.
00001 #ifndef _BOARD_KSK_LPC1788_SK_H_
00002 #define _BOARD_KSK_LPC1788_SK_H_
00003 
00004 /*
00005  * Copyright (C) 2012 by Ole Reinhardt (ole.reinhardt@embedded-it.de)
00006  *
00007  * All rights reserved.
00008  *
00009  * Redistribution and use in source and binary forms, with or without
00010  * modification, are permitted provided that the following conditions
00011  * are met:
00012  *
00013  * 1. Redistributions of source code must retain the above copyright
00014  *    notice, this list of conditions and the following disclaimer.
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in the
00017  *    documentation and/or other materials provided with the distribution.
00018  * 3. Neither the name of the copyright holders nor the names of
00019  *    contributors may be used to endorse or promote products derived
00020  *    from this software without specific prior written permission.
00021  *
00022  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00023  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00024  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00025  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00026  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00027  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00028  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00029  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00030  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00031  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00032  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00033  * SUCH DAMAGE.
00034  *
00035  * For additional information see http://www.ethernut.de/
00036  */
00037 
00038 /*
00039  * \file arch/cm3/board/ksk_lpc1788_sk.h
00040  * \brief IAR KSK LPC1788 SK evaluation board specific settings.
00041  *
00042  * \verbatim
00043  * $Id$
00044  * \endverbatim
00045  */
00046 
00047 
00048 /* LED 1 */
00049 
00050 #ifndef LED1_PORT
00051 #define LED1_PORT NUTGPIO_PORT1
00052 #endif
00053 #ifndef LED1_PIN
00054 #define LED1_PIN 13
00055 #endif
00056 
00057 
00058 /* LED 2 */
00059 #ifndef LED2_PORT
00060 #define LED2_PORT NUTGPIO_PORT1
00061 #endif
00062 #ifndef LED2_PIN
00063 #define LED2_PIN 18
00064 #endif
00065 
00066 /* define RTC */
00067 
00068 #ifndef RTC_CHIP
00069 #include <dev/lpc17xx_rtc.h>
00070 #define RTC_CHIP rtcLpc17xx
00071 #endif
00072 
00073 /* USARTs */
00074 
00075 #if !defined(DEV_UART)
00076 #include <dev/usart_lpc17xx.h>
00077 #define DEV_UART        DEV_UART0
00078 #define DEV_UART_NAME   DEV_UART0_NAME
00079 #endif
00080 
00081 #ifndef DEV_DEBUG
00082 #define DEV_DEBUG       devDebug0
00083 #endif
00084 
00085 #ifndef DEV_DEBUG_NAME
00086 #define DEV_DEBUG_NAME  "uart0"
00087 #endif
00088 
00089 /* define MMC interface */
00090 
00091 #ifndef DEV_MMCARD0
00092 #include <dev/lpc177x_8x_mci.h>
00093 #define DEV_MMCARD0         devLpcMci0
00094 #define DEV_MMCARD0_NAME    "MMC0"
00095 #endif
00096 
00097 #endif /* _BOARD_KSK_LPC1788_SK_H_ */