bluetooth control motor

Dependents:   BLE_LED_IDB0XA1_demo MOTOR_BLE_V2 Motor_Ble_v1 Motor_Ble_v10223 ... more

Fork of X_NUCLEO_IDB0XA1 by ST

Committer:
barry210110
Date:
Sun Feb 04 06:55:14 2018 +0000
Revision:
309:492635ae323d
Parent:
253:9665a6f8bbdb
final

Who changed what in which revision?

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