资源简介
使用CubeMX生成PWM波形,并且进行PWM波形的频率和占空比测量,使用硬件来进行两次捕获,降低代码的工作量。
代码片段和文件信息
/**
******************************************************************************
* @file stm32f4xx_hal.c
* @author MCD Application Team
* @brief HAL module driver.
* This is the common part of the HAL initialization
*
@verbatim
==============================================================================
##### How to use this driver #####
==============================================================================
[..]
The common HAL driver contains a set of generic and common APIs that can be
used by the PPP peripheral drivers and the user to start using the HAL.
[..]
The HAL contains two APIs‘ categories:
(+) Common HAL APIs
(+) Services HAL APIs
@endverbatim
******************************************************************************
* @attention
*
* © COPYRIGHT(c) 2017 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.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f4xx_hal.h“
/** @addtogroup STM32F4xx_HAL_Driver
* @{
*/
/** @defgroup HAL HAL
* @brief HAL module driver.
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private define -----------------------------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-29 14:08 STM32F4_PWM\
目录 0 2018-05-29 14:08 STM32F4_PWM\PWM_Test\
文件 4783 2018-05-29 14:08 STM32F4_PWM\PWM_Test\.mxproject
目录 0 2018-05-29 10:41 STM32F4_PWM\PWM_Test\Drivers\
目录 0 2018-05-29 14:08 STM32F4_PWM\PWM_Test\Drivers\CMSIS\
目录 0 2018-05-29 10:41 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\
目录 0 2018-05-29 10:41 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\
目录 0 2018-05-29 14:08 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\STM32F4xx\
目录 0 2018-05-29 14:08 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\STM32F4xx\Include\
文件 1253519 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f412zx.h
文件 10744 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h
文件 3796 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h
目录 0 2018-05-29 14:08 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\STM32F4xx\Source\
目录 0 2018-05-29 14:08 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Device\ST\STM32F4xx\Source\Templates\
目录 0 2018-05-29 14:08 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\
文件 7265 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\arm_common_tables.h
文件 3942 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\arm_const_structs.h
文件 252339 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\arm_math.h
文件 24423 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\cmsis_armcc.h
文件 55083 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\cmsis_armcc_V6.h
文件 41435 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\cmsis_gcc.h
文件 37218 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cm0.h
文件 44796 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cm0plus.h
文件 103909 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cm3.h
文件 114498 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cm4.h
文件 139660 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cm7.h
文件 3620 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cmFunc.h
文件 3636 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cmInstr.h
文件 3662 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_cmSimd.h
文件 45262 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_sc000.h
文件 102809 2018-05-23 13:03 STM32F4_PWM\PWM_Test\Drivers\CMSIS\Include\core_sc300.h
............此处省略161个文件信息
相关资源
- PMSM SVPWM 矢量控制各种模型最全
- ESP8266的简单PWM呼吸灯程序
- PWM整流器及其控制_12997442.pdf
- 电压型PWM整流器的非线性控制王久和
- PWM整流器设计
- 异步电动机SVPWM矢量控制变频器系统设
- STM32CubeMX用户手册中文版
- STM32数控直流电源
- pspice仿真三相桥式PWM逆变电路(完美
- stm32f4麦克纳姆轮+机械臂多路pwm控制代
- PWM整流器及其控制 高清 电子书 pdf
- PWM整流器及其控制张兴2012.part1.rar
- en.stm32cubeg4.zip
- L298N控制遥控小车
- STM32F103SPWM
- STM32CubeMX中文版
- spi master.zip94106
- STM32CubeIDE移植华为LiteOS.zip
- STM32Cube_FW_F4_V1.5.0.zip
- STM32CubeMX通过ESP8266 AT指令MQTT上阿里云
- STM32F103移植的UCOSIIIHAL库
- STM32CubeMX_v5.2.0.rar
- STM32CubeMX 4.26.1
- STM32CubeMx+Protues+VSPD仿真实现调试串口
- stm32cube_fw_f1_v160 161
- N76E003单片机PWM程序边沿对齐,独立输
- MC9S12XS128控制180°舵机程序
- 24-STM32CubeMX系列教程24-STemWim移植.pdf
- STM32CubeMX V5.4.0 2019年12月最新版 STM32初
- STM32Cube_fw_F1_V1.8.0 CubeMX的F1系列的封装
评论
共有 条评论