test
Dependents: BLE_HeartRate_IDB0XA1_EPUDEE_Avril2018
Fork of X_NUCLEO_IDB0XA1 by
x_nucleo_idb0xa1_targets.h
00001 /** 00002 ****************************************************************************** 00003 * @file x_nucleo_idb0xa1_targets.h 00004 * @author AST / EST 00005 * @version V0.0.1 00006 * @date 24-July-2015 00007 * @brief This header file is intended to manage the differences between 00008 * the different supported base-boards which might mount the 00009 * X_NUCLEO_IDB0XA1 BlueNRG BLE Expansion Board. 00010 ****************************************************************************** 00011 * @attention 00012 * 00013 * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> 00014 * 00015 * Redistribution and use in source and binary forms, with or without modification, 00016 * are permitted provided that the following conditions are met: 00017 * 1. Redistributions of source code must retain the above copyright notice, 00018 * this list of conditions and the following disclaimer. 00019 * 2. Redistributions in binary form must reproduce the above copyright notice, 00020 * this list of conditions and the following disclaimer in the documentation 00021 * and/or other materials provided with the distribution. 00022 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00023 * may be used to endorse or promote products derived from this software 00024 * without specific prior written permission. 00025 * 00026 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00027 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00028 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00029 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00030 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00031 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00032 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00033 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00034 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00035 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00036 * 00037 ****************************************************************************** 00038 */ 00039 00040 /* Define to prevent from recursive inclusion --------------------------------*/ 00041 #ifndef _X_NUCLEO_IDB0XA1_TARGETS_H_ 00042 #define _X_NUCLEO_IDB0XA1_TARGETS_H_ 00043 00044 /*** SPI ***/ 00045 /* Use Arduino I2C Connectors */ 00046 #define IDB0XA1_PIN_SPI_MOSI (D11) 00047 #define IDB0XA1_PIN_SPI_MISO (D12) 00048 #define IDB0XA1_PIN_SPI_nCS (A1) 00049 #define IDB0XA1_PIN_SPI_RESET (D7) 00050 #define IDB0XA1_PIN_SPI_IRQ (A0) 00051 00052 /* NOTE: Define macro 'IDB0XA1_D13_PATCH' if you want to compile for a specifically 00053 modified version of the X_NUCLEO_IDB0XA1 expansion board in 00054 which pin 'D13' (rather than the standard pin 'D3') is used 00055 in order to provide the SPI serial clock. 00056 Expansion boards modified in this way allow to be used on almost 00057 any Arduino-compliant base board. 00058 */ 00059 //#if defined(IDB0XA1_D13_PATCH) 00060 #define IDB0XA1_PIN_SPI_SCK (D13) 00061 //#else // !defined(IDB0XA1_D13_PATCH) 00062 //#define IDB0XA1_PIN_SPI_SCK (D3) 00063 //#endif // !defined(IDB0XA1_D13_PATCH) 00064 00065 /* NOTE: Stack Mode 0x04 allows Simultaneous Scanning and Advertisement (SSAdv) 00066 Define macro 'SSADV' to enable it 00067 */ 00068 #define SSADV 00069 #if defined(SSADV) 00070 #define IDB0XA1_STACK_MODE (0x04) 00071 #else 00072 #define IDB0XA1_STACK_MODE (0x02) 00073 #endif 00074 00075 #endif // _X_NUCLEO_IDB0XA1_TARGETS_H_
Generated on Tue Jul 12 2022 16:33:09 by 1.7.2