Previous version which works for my stm32f401 Nucleo board

Fork of X_NUCLEO_IDB0XA1 by ST

Committer:
Wolfgang Betz
Date:
Tue Oct 06 12:12:37 2015 +0200
Revision:
128:46ae62a90136
Parent:
114:b9c97d78627d
Merge branch 'master' of hg::http://wobetz@developer.mbed.org/teams/ST/code/X_NUCLEO_IDB0XA1 into idb0xa1-split

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wolfgang Betz 113:31c73e9b0108 1 /**
Wolfgang Betz 113:31c73e9b0108 2 ******************************************************************************
Wolfgang Betz 113:31c73e9b0108 3 * @file x_nucleo_idb0xa1_targets.h
Wolfgang Betz 113:31c73e9b0108 4 * @author AST / EST
Wolfgang Betz 113:31c73e9b0108 5 * @version V0.0.1
Wolfgang Betz 113:31c73e9b0108 6 * @date 24-July-2015
Wolfgang Betz 113:31c73e9b0108 7 * @brief This header file is intended to manage the differences between
Wolfgang Betz 113:31c73e9b0108 8 * the different supported base-boards which might mount the
Wolfgang Betz 113:31c73e9b0108 9 * X_NUCLEO_IDB0XA1 BlueNRG BLE Expansion Board.
Wolfgang Betz 113:31c73e9b0108 10 ******************************************************************************
Wolfgang Betz 113:31c73e9b0108 11 * @attention
Wolfgang Betz 113:31c73e9b0108 12 *
Wolfgang Betz 113:31c73e9b0108 13 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Wolfgang Betz 113:31c73e9b0108 14 *
Wolfgang Betz 113:31c73e9b0108 15 * Redistribution and use in source and binary forms, with or without modification,
Wolfgang Betz 113:31c73e9b0108 16 * are permitted provided that the following conditions are met:
Wolfgang Betz 113:31c73e9b0108 17 * 1. Redistributions of source code must retain the above copyright notice,
Wolfgang Betz 113:31c73e9b0108 18 * this list of conditions and the following disclaimer.
Wolfgang Betz 113:31c73e9b0108 19 * 2. Redistributions in binary form must reproduce the above copyright notice,
Wolfgang Betz 113:31c73e9b0108 20 * this list of conditions and the following disclaimer in the documentation
Wolfgang Betz 113:31c73e9b0108 21 * and/or other materials provided with the distribution.
Wolfgang Betz 113:31c73e9b0108 22 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Wolfgang Betz 113:31c73e9b0108 23 * may be used to endorse or promote products derived from this software
Wolfgang Betz 113:31c73e9b0108 24 * without specific prior written permission.
Wolfgang Betz 113:31c73e9b0108 25 *
Wolfgang Betz 113:31c73e9b0108 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Wolfgang Betz 113:31c73e9b0108 27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Wolfgang Betz 113:31c73e9b0108 28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Wolfgang Betz 113:31c73e9b0108 29 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Wolfgang Betz 113:31c73e9b0108 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Wolfgang Betz 113:31c73e9b0108 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Wolfgang Betz 113:31c73e9b0108 32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Wolfgang Betz 113:31c73e9b0108 33 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Wolfgang Betz 113:31c73e9b0108 34 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Wolfgang Betz 113:31c73e9b0108 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Wolfgang Betz 113:31c73e9b0108 36 *
Wolfgang Betz 113:31c73e9b0108 37 ******************************************************************************
Wolfgang Betz 113:31c73e9b0108 38 */
Wolfgang Betz 113:31c73e9b0108 39
Wolfgang Betz 113:31c73e9b0108 40 /* Define to prevent from recursive inclusion --------------------------------*/
Wolfgang Betz 113:31c73e9b0108 41 #ifndef _X_NUCLEO_IDB0XA1_TARGETS_H_
Wolfgang Betz 113:31c73e9b0108 42 #define _X_NUCLEO_IDB0XA1_TARGETS_H_
Wolfgang Betz 113:31c73e9b0108 43
Wolfgang Betz 113:31c73e9b0108 44 /*** SPI ***/
Wolfgang Betz 113:31c73e9b0108 45 /* Use Arduino I2C Connectors */
Wolfgang Betz 113:31c73e9b0108 46 #define IDB0XA1_PIN_SPI_MOSI (D11)
Wolfgang Betz 113:31c73e9b0108 47 #define IDB0XA1_PIN_SPI_MISO (D12)
Wolfgang Betz 113:31c73e9b0108 48 #define IDB0XA1_PIN_SPI_nCS (A1)
Wolfgang Betz 113:31c73e9b0108 49 #define IDB0XA1_PIN_SPI_RESET (D7)
Wolfgang Betz 113:31c73e9b0108 50 #define IDB0XA1_PIN_SPI_IRQ (A0)
Wolfgang Betz 113:31c73e9b0108 51
Wolfgang Betz 113:31c73e9b0108 52 /* NOTE: Define beyond macro if you want to compile for a specifically
Wolfgang Betz 113:31c73e9b0108 53 modified version of the X_NUCLEO_IDB0XA1 expansion board in
Wolfgang Betz 113:31c73e9b0108 54 which pin 'D13' (rather than the standard pin 'D3') is used
Wolfgang Betz 113:31c73e9b0108 55 in order to provide the SPI serial clock.
Wolfgang Betz 113:31c73e9b0108 56 Expansion boards modified in this way allow to be used on almost
Wolfgang Betz 113:31c73e9b0108 57 any Arduino-compliant base board.
Wolfgang Betz 113:31c73e9b0108 58 */
Wolfgang Betz 114:b9c97d78627d 59 //#define IDB0XA1_D13_PATCH
Wolfgang Betz 113:31c73e9b0108 60
Wolfgang Betz 113:31c73e9b0108 61 #if defined(IDB0XA1_D13_PATCH)
Wolfgang Betz 113:31c73e9b0108 62 #define IDB0XA1_PIN_SPI_SCK (D13)
Wolfgang Betz 113:31c73e9b0108 63 #else // !defined(IDB0XA1_D13_PATCH)
Wolfgang Betz 113:31c73e9b0108 64 #define IDB0XA1_PIN_SPI_SCK (D3)
Wolfgang Betz 113:31c73e9b0108 65 #endif // !defined(IDB0XA1_D13_PATCH)
Wolfgang Betz 113:31c73e9b0108 66
Wolfgang Betz 113:31c73e9b0108 67 #endif // _X_NUCLEO_IDB0XA1_TARGETS_H_