Shih-Ho Hsieh / XYZ_sensor_Platform_SPI

Fork of XYZ_sensor_Platform by Shih-Ho Hsieh

Committer:
hober
Date:
Thu Nov 09 03:40:43 2017 +0000
Revision:
2:856f03e64695
Child:
3:2194b5b4f82a
20171109

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hober 2:856f03e64695 1 /**
hober 2:856f03e64695 2 ******************************************************************************
hober 2:856f03e64695 3 * @file altimu_10_v5_targets.h
hober 2:856f03e64695 4 * @author AST / EST
hober 2:856f03e64695 5 * @version V0.0.1
hober 2:856f03e64695 6 * @date 14-April-2015
hober 2:856f03e64695 7 * @brief This header file is intended to manage the differences between
hober 2:856f03e64695 8 * the different supported base-boards which might mount the
hober 2:856f03e64695 9 * MOTOR MEMS Inertial & Environmental Nucleo Expansion Board.
hober 2:856f03e64695 10 ******************************************************************************
hober 2:856f03e64695 11 * @attention
hober 2:856f03e64695 12 *
hober 2:856f03e64695 13 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
hober 2:856f03e64695 14 *
hober 2:856f03e64695 15 * Redistribution and use in source and binary forms, with or without modification,
hober 2:856f03e64695 16 * are permitted provided that the following conditions are met:
hober 2:856f03e64695 17 * 1. Redistributions of source code must retain the above copyright notice,
hober 2:856f03e64695 18 * this list of conditions and the following disclaimer.
hober 2:856f03e64695 19 * 2. Redistributions in binary form must reproduce the above copyright notice,
hober 2:856f03e64695 20 * this list of conditions and the following disclaimer in the documentation
hober 2:856f03e64695 21 * and/or other materials provided with the distribution.
hober 2:856f03e64695 22 * 3. Neither the name of STMicroelectronics nor the names of its contributors
hober 2:856f03e64695 23 * may be used to endorse or promote products derived from this software
hober 2:856f03e64695 24 * without specific prior written permission.
hober 2:856f03e64695 25 *
hober 2:856f03e64695 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
hober 2:856f03e64695 27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
hober 2:856f03e64695 28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
hober 2:856f03e64695 29 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
hober 2:856f03e64695 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
hober 2:856f03e64695 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
hober 2:856f03e64695 32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
hober 2:856f03e64695 33 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
hober 2:856f03e64695 34 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
hober 2:856f03e64695 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
hober 2:856f03e64695 36 *
hober 2:856f03e64695 37 ******************************************************************************
hober 2:856f03e64695 38 */
hober 2:856f03e64695 39
hober 2:856f03e64695 40 /* Define to prevent from recursive inclusion --------------------------------*/
hober 2:856f03e64695 41 #ifndef _MOTOR_TARGETS_H_
hober 2:856f03e64695 42 #define _MOTOR_TARGETS_H_
hober 2:856f03e64695 43
hober 2:856f03e64695 44 /** Motor X**/
hober 2:856f03e64695 45 #define MOTOR_X_PIN_DIRECTION (D0)
hober 2:856f03e64695 46 #define MOTOR_X_PIN_PULSE (D1)
hober 2:856f03e64695 47 #define MOTOR_X_PIN_ALARM (D2)
hober 2:856f03e64695 48 #define MOTOR_X_PIN_RESET (D3)
hober 2:856f03e64695 49
hober 2:856f03e64695 50 /** Motor Y**/
hober 2:856f03e64695 51 #define MOTOR_Y_PIN_DIRECTION (D4)
hober 2:856f03e64695 52 #define MOTOR_Y_PIN_PULSE (D5)
hober 2:856f03e64695 53 #define MOTOR_Y_PIN_ALARM (D6)
hober 2:856f03e64695 54 #define MOTOR_Y_PIN_RESET (D7)
hober 2:856f03e64695 55
hober 2:856f03e64695 56 /** Motor Z**/
hober 2:856f03e64695 57 #define MOTOR_Z_PIN_PU (D8)
hober 2:856f03e64695 58 #define MOTOR_Z_PIN_DR (D9)
hober 2:856f03e64695 59 #define MOTOR_Z_PIN_MF (D10)
hober 2:856f03e64695 60
hober 2:856f03e64695 61 #endif // _MOTOR_TARGETS_H_