gg

Dependencies:   mbed MPU6050 RateLimiter test Math

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers x_nucleo_ihm07m1_targets.h Source File

x_nucleo_ihm07m1_targets.h

Go to the documentation of this file.
00001 /* mbed Microcontroller Library
00002 * Copyright (c) 2006-2016 ARM Limited
00003 *
00004 * Licensed under the Apache License, Version 2.0 (the "License");
00005 * you may not use this file except in compliance with the License.
00006 * You may obtain a copy of the License at
00007 *
00008 *     http://www.apache.org/licenses/LICENSE-2.0
00009 *
00010 * Unless required by applicable law or agreed to in writing, software
00011 * distributed under the License is distributed on an "AS IS" BASIS,
00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013 * See the License for the specific language governing permissions and
00014 * limitations under the License.
00015 */
00016 
00017 /**
00018   ******************************************************************************
00019   * @file    x_nucleo_ihm07m1_targets.h 
00020   * @author  STMicroelectronics
00021   * @brief   Header file with pin definitions for X-NUCLEO-IHM07M1 board
00022   ******************************************************************************
00023   * @copy
00024   *
00025   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00026   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
00027   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
00028   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
00029   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
00030   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00031   *
00032   * <h2><center>&copy; COPYRIGHT 2016 STMicroelectronics</center></h2>
00033   */ 
00034 
00035 /* Define to prevent from recursive inclusion --------------------------------*/
00036 #ifndef __X_NUCLEO_IHM07M1_TARGETS_H_
00037 #define __X_NUCLEO_IHM07M1_TARGETS_H_
00038 
00039 // Default pin configuration for X-NUCLEO-IHM07M1 with STM32 Nucleo-64 boards
00040 
00041 // Logic input pins
00042 #define P_IN1 PA_8
00043 #define P_IN2 PA_9
00044 #define P_IN3 PA_10
00045 
00046 // Enable channel pins
00047 //#define P_EN1 PC_10  //IHM07
00048 //#define P_EN2 PC_11
00049 //#define P_EN3 PC_12
00050 
00051 #define P_EN1 PA_7      //IHM08
00052 #define P_EN2 PB_0 
00053 #define P_EN3 PB_1 
00054 
00055 // Hall sensors pins
00056 #define P_HALL1 PA_15
00057 #define P_HALL2 PB_3
00058 #define P_HALL3 PB_10
00059 
00060 // Temperature pin
00061 #define P_TEMP PC_2
00062 
00063 // Fault LED
00064 #define P_FAULT PB_2
00065 
00066 // Speed potentiometer
00067 //#define P_SPEED PB_1    //IHM07 
00068 #define P_SPEED PA_4        //IHM
00069 
00070 // Back EMF pins
00071 //#define P_BEMF1 PC_3  //IHM07 
00072 //#define P_BEMF2 PB_0  
00073 //#define P_BEMF3 PA_7  
00074 
00075 #define P_BEMF1 PC_3    //IHM08
00076 #define P_BEMF2 PC_4
00077 #define P_BEMF3 PC_5
00078 
00079 // Current pins
00080 #define P_CURR1 PA_0
00081 #define P_CURR2 PC_1
00082 #define P_CURR3 PC_0
00083 
00084 // Voltage bus pin
00085 #define P_VBUS PA_1
00086 
00087 #endif // __X_NUCLEO_IHM07M1_TARGETS_H_