Shih-Ho Hsieh / XYZ_sensor_Platform
Committer:
hober
Date:
Fri Dec 01 01:31:45 2017 +0000
Revision:
7:0ad7d240be7a
Parent:
4:229de5852b9e
Child:
8:679a5428d584
20171201 init platform

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 4:229de5852b9e 45 #define MOTOR_Y_POUT_DIRECTION (D0)
hober 4:229de5852b9e 46 #define MOTOR_Y_POUT_PULSE (D1)
hober 4:229de5852b9e 47 #define MOTOR_Y_PIN_ALARM (D2)
hober 4:229de5852b9e 48 #define MOTOR_Y_POUT_RESET (D3)
hober 2:856f03e64695 49
hober 2:856f03e64695 50 /** Motor Y**/
hober 4:229de5852b9e 51 #define MOTOR_X_POUT_DIRECTION (D4)
hober 4:229de5852b9e 52 #define MOTOR_X_POUT_PULSE (D5)
hober 4:229de5852b9e 53 #define MOTOR_X_PIN_ALARM (D6)
hober 4:229de5852b9e 54 #define MOTOR_X_POUT_RESET (D7)
hober 2:856f03e64695 55
hober 2:856f03e64695 56 /** Motor Z**/
hober 3:2194b5b4f82a 57 #define MOTOR_Z_POUT_PU (D8)
hober 3:2194b5b4f82a 58 #define MOTOR_Z_POUT_DR (D9)
hober 3:2194b5b4f82a 59 #define MOTOR_Z_POUT_MF (D10)
hober 3:2194b5b4f82a 60
hober 4:229de5852b9e 61 /** Light Sensor**/
hober 7:0ad7d240be7a 62 #define MOTOR_X_PINT_ZERO (PF_2)
hober 7:0ad7d240be7a 63 #define MOTOR_X_PINT_END (PH_1)
hober 7:0ad7d240be7a 64 #define MOTOR_Y_PINT_ZERO (PH_0)
hober 7:0ad7d240be7a 65 #define MOTOR_Y_PINT_END (PD_2)
hober 7:0ad7d240be7a 66 #define MOTOR_Z_PINT_ZERO (PD_1)
hober 7:0ad7d240be7a 67 #define MOTOR_Z_PINT_END (PG_0)
hober 3:2194b5b4f82a 68
hober 2:856f03e64695 69
hober 2:856f03e64695 70 #endif // _MOTOR_TARGETS_H_