Example application for X-NUCLEO-IHM07M1 board connected to a 3-phase brushless motor with Hall sensors.

Dependencies:   BLDCmotorDriver RateLimiter mbed

Fork of HelloWorld_IHM07M1 by Antonio Vilei

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
00048 #define P_EN2 PC_11
00049 #define P_EN3 PC_12
00050 
00051 // Hall sensors pins
00052 #define P_HALL1 PA_15
00053 #define P_HALL2 PB_3
00054 #define P_HALL3 PB_10
00055 
00056 // Temperature pin
00057 #define P_TEMP PC_2
00058 
00059 // Fault LED
00060 #define P_FAULT PB_2
00061 
00062 // Speed potentiometer
00063 #define P_SPEED PB_1
00064 
00065 // Back EMF pins
00066 #define P_BEMF1 PC_3
00067 #define P_BEMF2 PB_0
00068 #define P_BEMF3 PA_7
00069 
00070 // Current pins
00071 #define P_CURR1 PA_0
00072 #define P_CURR2 PC_1
00073 #define P_CURR3 PC_0
00074 
00075 // Voltage bus pin
00076 #define P_VBUS PA_1
00077 
00078 #endif // __X_NUCLEO_IHM07M1_TARGETS_H_