STM32 ,实现了低压BLDC马达驱动


STM32 ,实现了低压BLDC马达驱动
资源截图
代码片段和文件信息
/**
 ******************************************************************************
 * @file    L6398.c
 * @author  System lab - Automation and Motion control team
 * @version V1.1.0
 * @date    23-Oct-2015
 * @brief   This file provides a set of functions to manage L6398 driver
 ******************************************************************************
 * @attention
 *
 * 

© COPYRIGHT(c) 2015 STMicroelectronics


 *
 * Redistribution and use in source and binary forms with or without modification
 * are permitted provided that the following conditions are met:
 *   1. Redistributions of source code must retain the above copyright notice
 *      this list of conditions and the following disclaimer.
 *   2. Redistributions in binary form must reproduce the above copyright notice
 *      this list of conditions and the following disclaimer in the documentation
 *      and/or other materials provided with the distribution.
 *   3. Neither the name of STMicroelectronics nor the names of its contributors
 *      may be used to endorse or promote products derived from this software
 *      without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
 * AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
 * DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 ******************************************************************************
 */

#include “l6398.h“

/** @addtogroup DRIVERS     DRIVERS 
  * @brief  Driver layer
  * @{ 
  */

/** @addtogroup BSP    BSP
  * @brief  BSP layer
  * @{ 
  */

/** @addtogroup COMPONENTS    COMPONENTS
  * @brief  Components
  * @{ 
  */

/** @addtogroup L6398    L6398
  * @brief  L6398 driver section
  * @{ 
  */

/** @defgroup L6398MotorDriver    L6398MotorDriver
  *  @{
    * @brief API pointer for L6398
  */


L6398_MotorDriver_TypeDef L6398MotorDriver =
{
  EnableInput_CH1_E_CH2_E_CH3_D
  EnableInput_CH1_E_CH2_D_CH3_E
  EnableInput_CH1_D_CH2_E_CH3_E  
  DisableInput_CH1_D_CH2_D_CH3_D
  Start_PWM_driving
  Stop_PWM_driving
  HF_TIMx_SetDutyCycle_CH1
  HF_TIMx_SetDutyCycle_CH2
  HF_TIMx_SetDutyCycle_CH3
  Current_Reference_Start
  Current_Reference_Stop
  Current_Reference_Setvalue
};    
    
 /**
  * @} 
  */   

/** @defgroup Enab

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-04-07 23:00  STM32CubeExpansion_SPN8_V1.0.1
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1Documentation
     文件     1182843  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DocumentationX-CUBE-SPN8.chm
     目录           0  2016-04-07 23:00  STM32CubeExpansion_SPN8_V1.0.1Drivers
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSP
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPComponents
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPComponentsCommon
     文件        4167  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPComponentsCommonMC_Common.h
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPComponentsl6398
     文件        6551  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPComponentsl6398l6398.c
     文件        3836  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPComponentsl6398l6398.h
     文件       25501  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPComponentsl6398Release_Notes.html
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svn
     文件           3  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnentries
     文件           3  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnformat
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnpristine
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnpristine10
     文件       24827  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnpristine1010b0638d1910d19538cfa6ed03a71c8dcc0a0034.svn-base
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnpristine20
     文件       15562  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnpristine2020063c9e25aadf639ed8f1e3872936c33788ab2d.svn-base
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnpristinedd
     文件       11504  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnpristinedddd3f1f1a2ddeb65f606f4fe8fccd65a7904dd3ce.svn-base
     目录           0  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svn mp
     文件       36864  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleo.svnwc.db
     文件       15562  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-NucleoRelease_Notes.html
     文件       24827  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleostm32f3xx_nucleo.c
     文件       11504  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F3xx-Nucleostm32f3xx_nucleo.h
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F4xx-Nucleo
     目录           0  2016-04-07 22:59  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F4xx-Nucleo.svn
     文件           3  2016-04-07 17:42  STM32CubeExpansion_SPN8_V1.0.1DriversBSPSTM32F4xx-Nucleo.svnentries
............此处省略2829个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)