Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of X_NUCLEO_IHM04A1 by
l6206_target_config.h
00001 /**************************************************************************//** 00002 * @file L6206_target_config.h 00003 * @author IPC Rennes 00004 * @version V1.0.0 00005 * @date January 06, 2015 00006 * @brief Predefines values for the L6206 parameters 00007 * and for the devices parameters 00008 * @note (C) COPYRIGHT 2015 STMicroelectronics 00009 ****************************************************************************** 00010 * @attention 00011 * 00012 * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> 00013 * 00014 * Redistribution and use in source and binary forms, with or without modification, 00015 * are permitted provided that the following conditions are met: 00016 * 1. Redistributions of source code must retain the above copyright notice, 00017 * this list of conditions and the following disclaimer. 00018 * 2. Redistributions in binary form must reproduce the above copyright notice, 00019 * this list of conditions and the following disclaimer in the documentation 00020 * and/or other materials provided with the distribution. 00021 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00022 * may be used to endorse or promote products derived from this software 00023 * without specific prior written permission. 00024 * 00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00026 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00027 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00028 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00029 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00030 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00031 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00032 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00033 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00034 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00035 * 00036 ****************************************************************************** 00037 */ 00038 00039 /* Define to prevent recursive inclusion -------------------------------------*/ 00040 #ifndef __L6206_TARGET_CONFIG_H 00041 #define __L6206_TARGET_CONFIG_H 00042 00043 #ifdef __cplusplus 00044 extern "C" { 00045 #endif 00046 00047 /** @addtogroup BSP 00048 * @{ 00049 */ 00050 00051 /** @addtogroup L6474 00052 * @{ 00053 */ 00054 00055 /** @addtogroup L6206_Exported_Constants 00056 * @{ 00057 */ 00058 00059 /** @defgroup Predefined_L6206_Parameters_Values Predefined L6206 Parameters Values 00060 * @{ 00061 */ 00062 00063 /// The maximum number of L6206 devices 00064 #define MAX_NUMBER_OF_DEVICES (1) 00065 00066 /// The maximum number of BLDC motors connected to the L6206 00067 #define MAX_NUMBER_OF_BRUSH_DC_MOTORS (4) 00068 00069 /// Frequency of PWM of Input 1 Bridge A in Hz up to 100000Hz 00070 #define L6206_CONF_PARAM_FREQ_PWM1A (20000) 00071 /// Frequency of PWM of Input 2 Bridge A in Hz up to 100000Hz 00072 /// ON IHM04A1, must be identical to L6206_CONF_PARAM_FREQ_PWM1A as used timer is the same 00073 #define L6206_CONF_PARAM_FREQ_PWM2A (20000) 00074 /// Frequency of PWM of Input 1 Bridge B in Hz up to 100000Hz 00075 #define L6206_CONF_PARAM_FREQ_PWM1B (20000) 00076 /// Frequency of PWM of Input 2 Bridge B in Hz up to 100000Hz 00077 /// On IHM04A1, must be identical to L6206_CONF_PARAM_FREQ_PWM2B as used timer is the same 00078 #define L6206_CONF_PARAM_FREQ_PWM2B (20000) 00079 00080 /// Frequency of PWM of Input 2 Bridge B (in kHz) 00081 #define L6206_CONF_PARAM_PARALLE_BRIDGES (PARALLELING_NONE___1_BIDIR_MOTOR_BRIDGE_A__1_BIDIR_MOTOR_BRIDGE_B) 00082 /** 00083 * @} 00084 */ 00085 00086 /** 00087 * @} 00088 */ 00089 00090 /** 00091 * @} 00092 */ 00093 00094 /** 00095 * @} 00096 */ 00097 00098 #ifdef __cplusplus 00099 } 00100 #endif 00101 00102 #endif /* __L6206_TARGET_CONFIG_H */ 00103 00104
Generated on Fri Jul 15 2022 09:11:13 by
1.7.2
