Nut/OS  5.0.5
API Reference
f4_discovery.h
Go to the documentation of this file.
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/f4_discovery.h
00037  * \brief STM32f4_Discovery board specific settings.
00038  *
00039  * \verbatim
00040  * $Id$
00041  * \endverbatim
00042  */
00043 /* Orange LED*/
00044 #ifndef LED1_PORT
00045 #define LED1_PORT NUTGPIO_PORTD
00046 #endif
00047 #ifndef LED1_PIN
00048 #define LED1_PIN 13
00049 #endif
00050 /* GREEN LED*/
00051 #ifndef LED2_PORT
00052 #define LED2_PORT NUTGPIO_PORTD
00053 #endif
00054 #ifndef LED2_PIN
00055 #define LED2_PIN 12
00056 #endif
00057 /* RED LED*/
00058 #ifndef LED3_PORT
00059 #define LED3_PORT NUTGPIO_PORTD
00060 #endif
00061 #ifndef LED3_PIN
00062 #define LED3_PIN 14
00063 #endif
00064 /* BLUE LED*/
00065 #ifndef LED4_PORT
00066 #define LED4_PORT NUTGPIO_PORTD
00067 #endif
00068 #ifndef LED4_PIN
00069 #define LED4_PIN 15
00070 #endif
00071 
00072 /* Some extension*/
00073 #ifndef OWI_PORT
00074 #define OWI_PORT NUTGPIO_PORTC
00075 #endif
00076 #ifndef OWI_PIN
00077 #define OWI_PIN  1
00078 #endif
00079 #ifndef OWI_TIMER
00080 #define OWI_TIMER NUTTIMER2
00081 #endif
00082 
00083 #ifndef DEV_UART
00084 #define DEV_UART devUsartStm32_2
00085 #endif
00086 #ifndef DEV_UART_NAME
00087 #define DEV_UART_NAME  devUsartStm32_2.dev_name
00088 #endif
00089 
00090 #ifndef SBBI0_MISO_BIT
00091 #define SBBI0_MISO_BIT 6
00092 #endif
00093 #ifndef SBBI0_MISO_PORT
00094 #define SBBI0_MISO_PORT NUTGPIO_PORTA
00095 #endif
00096 #ifndef SBBI0_MOSI_BIT
00097 #define SBBI0_MOSI_BIT 7
00098 #endif
00099 #ifndef SBBI0_MOSI_PORT
00100 #define SBBI0_MOSI_PORT NUTGPIO_PORTA
00101 #endif
00102 #ifndef SBBI0_SCK_BIT
00103 #define SBBI0_SCK_BIT 5
00104 #endif
00105 #ifndef SBBI0_SCK_PORT
00106 #define SBBI0_SCK_PORT NUTGPIO_PORTA
00107 #endif
00108 #ifndef SBBI0_CS0_BIT
00109 #define SBBI0_CS0_BIT 3
00110 #endif
00111 #ifndef SBBI0_CS0_PORT
00112 #define SBBI0_CS0_PORT NUTGPIO_PORTE
00113 #endif
00114 
00115 #define AUDIO_RST_PORT NUTGPIO_PORTD
00116 #define AUDIO_RST_PIN  4