Fork of ble-x-nucleo-idb0xa1 with changes required by BleStarMbed

Dependents:   ble-star-mbed

Committer:
lorevee
Date:
Tue Feb 20 11:07:16 2018 +0000
Revision:
0:ac0b0725c6fa
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lorevee 0:ac0b0725c6fa 1 /**
lorevee 0:ac0b0725c6fa 2 ******************************************************************************
lorevee 0:ac0b0725c6fa 3 * @file bluenrg_targets.h
lorevee 0:ac0b0725c6fa 4 * @author AST / EST
lorevee 0:ac0b0725c6fa 5 * @version V0.0.1
lorevee 0:ac0b0725c6fa 6 * @date 24-July-2015
lorevee 0:ac0b0725c6fa 7 * @brief This header file is intended to manage the differences between
lorevee 0:ac0b0725c6fa 8 * the different supported base-boards which might mount the
lorevee 0:ac0b0725c6fa 9 * X_NUCLEO_IDB0XA1 BlueNRG BLE Expansion Board.
lorevee 0:ac0b0725c6fa 10 ******************************************************************************
lorevee 0:ac0b0725c6fa 11 * @attention
lorevee 0:ac0b0725c6fa 12 *
lorevee 0:ac0b0725c6fa 13 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
lorevee 0:ac0b0725c6fa 14 *
lorevee 0:ac0b0725c6fa 15 * Redistribution and use in source and binary forms, with or without modification,
lorevee 0:ac0b0725c6fa 16 * are permitted provided that the following conditions are met:
lorevee 0:ac0b0725c6fa 17 * 1. Redistributions of source code must retain the above copyright notice,
lorevee 0:ac0b0725c6fa 18 * this list of conditions and the following disclaimer.
lorevee 0:ac0b0725c6fa 19 * 2. Redistributions in binary form must reproduce the above copyright notice,
lorevee 0:ac0b0725c6fa 20 * this list of conditions and the following disclaimer in the documentation
lorevee 0:ac0b0725c6fa 21 * and/or other materials provided with the distribution.
lorevee 0:ac0b0725c6fa 22 * 3. Neither the name of STMicroelectronics nor the names of its contributors
lorevee 0:ac0b0725c6fa 23 * may be used to endorse or promote products derived from this software
lorevee 0:ac0b0725c6fa 24 * without specific prior written permission.
lorevee 0:ac0b0725c6fa 25 *
lorevee 0:ac0b0725c6fa 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
lorevee 0:ac0b0725c6fa 27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
lorevee 0:ac0b0725c6fa 28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
lorevee 0:ac0b0725c6fa 29 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
lorevee 0:ac0b0725c6fa 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
lorevee 0:ac0b0725c6fa 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
lorevee 0:ac0b0725c6fa 32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
lorevee 0:ac0b0725c6fa 33 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
lorevee 0:ac0b0725c6fa 34 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
lorevee 0:ac0b0725c6fa 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
lorevee 0:ac0b0725c6fa 36 *
lorevee 0:ac0b0725c6fa 37 ******************************************************************************
lorevee 0:ac0b0725c6fa 38 */
lorevee 0:ac0b0725c6fa 39
lorevee 0:ac0b0725c6fa 40 /* Define to prevent from recursive inclusion --------------------------------*/
lorevee 0:ac0b0725c6fa 41 #ifndef _BLUENRG_TARGETS_H_
lorevee 0:ac0b0725c6fa 42 #define _BLUENRG_TARGETS_H_
lorevee 0:ac0b0725c6fa 43
lorevee 0:ac0b0725c6fa 44 #if !defined(BLUENRG_PIN_SPI_MOSI)
lorevee 0:ac0b0725c6fa 45 #define BLUENRG_PIN_SPI_MOSI (D11)
lorevee 0:ac0b0725c6fa 46 #endif
lorevee 0:ac0b0725c6fa 47 #if !defined(BLUENRG_PIN_SPI_MISO)
lorevee 0:ac0b0725c6fa 48 #define BLUENRG_PIN_SPI_MISO (D12)
lorevee 0:ac0b0725c6fa 49 #endif
lorevee 0:ac0b0725c6fa 50 #if !defined(BLUENRG_PIN_SPI_nCS)
lorevee 0:ac0b0725c6fa 51 #define BLUENRG_PIN_SPI_nCS (A1)
lorevee 0:ac0b0725c6fa 52 #endif
lorevee 0:ac0b0725c6fa 53 #if !defined(BLUENRG_PIN_SPI_RESET)
lorevee 0:ac0b0725c6fa 54 #define BLUENRG_PIN_SPI_RESET (D7)
lorevee 0:ac0b0725c6fa 55 #endif
lorevee 0:ac0b0725c6fa 56 #if !defined(BLUENRG_PIN_SPI_IRQ)
lorevee 0:ac0b0725c6fa 57 #define BLUENRG_PIN_SPI_IRQ (A0)
lorevee 0:ac0b0725c6fa 58 #endif
lorevee 0:ac0b0725c6fa 59
lorevee 0:ac0b0725c6fa 60 /* NOTE: Refer to README for further details regarding BLUENRG_PIN_SPI_SCK */
lorevee 0:ac0b0725c6fa 61 #if !defined(BLUENRG_PIN_SPI_SCK)
lorevee 0:ac0b0725c6fa 62 #define BLUENRG_PIN_SPI_SCK (D3)
lorevee 0:ac0b0725c6fa 63 #endif
lorevee 0:ac0b0725c6fa 64
lorevee 0:ac0b0725c6fa 65 /* NOTE: Stack Mode 0x04 allows Simultaneous Scanning and Advertisement (SSAdv)
lorevee 0:ac0b0725c6fa 66 * Mode 0x01: slave or master, 1 connection
lorevee 0:ac0b0725c6fa 67 * Mode 0x02: slave or master, 1 connection
lorevee 0:ac0b0725c6fa 68 * Mode 0x03: master/slave, 8 connections
lorevee 0:ac0b0725c6fa 69 * Mode 0x04: master/slave, 4 connections (simultaneous scanning and advertising)
lorevee 0:ac0b0725c6fa 70 * Check Table 285 of
lorevee 0:ac0b0725c6fa 71 * BlueNRG-MS Bluetooth LE stack application command interface (ACI) User Manual (UM1865) at st.com
lorevee 0:ac0b0725c6fa 72 */
lorevee 0:ac0b0725c6fa 73 #if !defined(BLUENRG_STACK_MODE)
lorevee 0:ac0b0725c6fa 74 #define BLUENRG_STACK_MODE (0x04)
lorevee 0:ac0b0725c6fa 75 #endif
lorevee 0:ac0b0725c6fa 76
lorevee 0:ac0b0725c6fa 77 #endif // _BLUENRG_TARGTES_H_