00001 /* 00002 * Copyright 2012 by Uwe Bonnes (bon@elektron.ikp.physik.tu-darmstadt.de) 00003 * 00004 * 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 copyright holders nor the names of 00016 * contributors may be used to endorse or promote products derived 00017 * from this software 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 THE 00023 * 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 * For additional information see http://www.ethernut.de/ 00033 */ 00034 00035 /* 00036 * \file arch/cm3/board/stm32_can.h 00037 * \brief STM32_CAN board specific settings. 00038 * 00039 * \verbatim 00040 * $Id$ 00041 * \endverbatim 00042 */ 00043 #ifndef LED1_PORT 00044 #define LED1_PORT NUTGPIO_PORTA 00045 #endif 00046 #ifndef LED1_PIN 00047 #define LED1_PIN 8 00048 #endif 00049 00050 #ifndef LED2_PORT 00051 #define LED2_PORT NUTGPIO_PORTC 00052 #endif 00053 #ifndef LED2_PIN 00054 #define LED2_PIN 8 00055 #endif 00056 00057 #ifndef LED3_PORT 00058 #define LED3_PORT NUTGPIO_PORTC 00059 #endif 00060 #ifndef LED3_PIN 00061 #define LED3_PIN 7 00062 #endif 00063 00064 #ifndef LED4_PORT 00065 #define LED4_PORT NUTGPIO_PORTB 00066 #endif 00067 #ifndef LED4_PIN 00068 #define LED4_PIN 12 00069 #endif 00070 00071 #ifndef OWI_PORT 00072 #define OWI_PORT NUTGPIO_PORTA 00073 #endif 00074 #ifndef OWI_PIN 00075 #define OWI_PIN 9 00076 #endif 00077 00078 #ifndef OWI_UART 00079 #define OWI_UART devUsartStm32_1 00080 #endif 00081 00082 #ifndef DEV_UART 00083 #define DEV_UART devUsartStm32_2 00084 #endif 00085 #ifndef DEV_UART_NAME 00086 #define DEV_UART_NAME devUsartStm32_2.dev_name 00087 #endif 00088 00089 #ifndef DEV_DEBUG 00090 #define DEV_DEBUG devUsartStm32_2 00091 #endif 00092 #ifndef DEV_DEBUG_NAME 00093 #define DEV_DEBUG_NAME devUsartStm32_2.dev_name 00094 #endif