/**
******************************************************************************
* @file stm32f3xx_hal_adc_ex.c
* @author MCD Application Team
* @version V1.4.0
* @date 16-December-2016
* @brief This file provides firmware functions to manage the following
* functionalities of the Analog to Digital Convertor (ADC)
* peripheral:
* + Operation functions
* ++ Start, stop, get result of conversions of injected
* group, using 2 possible modes: polling, interruption.
* ++ Multimode feature (available on devices with 2 ADCs or more)
* ++ Calibration (ADC automatic self-calibration)
* + Control functions
* ++ Channels configuration on injected group
* Other functions (generic functions) are available in file
* "stm32f3xx_hal_adc.c".
*
@verbatim
[..]
(@) Sections "ADC peripheral features" and "How to use this driver" are
available in file of generic functions "stm32f3xx_hal_adc.c".
[..]
@endverbatim
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
*
* 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 "stm32f3xx_hal.h"
/** @addtogroup STM32F3xx_HAL_Driver
* @{
*/
/** @defgroup ADCEx ADCEx
* @brief ADC Extended HAL module driver
* @{
*/
#ifdef HAL_ADC_MODULE_ENABLED
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/** @defgroup ADCEx_Private_Constants ADCEx Private Constants
* @{
*/
#if defined(STM32F302xE) || defined(STM32F303xE) || defined(STM32F398xx) || \
defined(STM32F302xC) || defined(STM32F303xC) || defined(STM32F358xx) || \
defined(STM32F303x8) || defined(STM32F334x8) || defined(STM32F328xx) || \
defined(STM32F301x8) || defined(STM32F302x8) || defined(STM32F318xx)
/* Fixed timeout values for ADC calibration, enable settling time, disable */
/* settling time. */
/* Values defined to be higher than worst cases: low clock frequency, */
/* maximum prescalers. */
/* Ex of profile low frequency : Clock source at 0.5 MHz, ADC clock */
/* prescaler 256 (devices STM32F30xx), sampling time 7.5 ADC clock cycles, */
/* resolution 12 bits. */
/* Unit: ms */
#define ADC_CALIBRATION_TIMEOUT ( 10U)
#define ADC_ENABLE_TIMEOUT ( 2U)
#define ADC_DISABLE_TIMEOUT ( 2U)
#define ADC_STOP_CONVERSION_TIMEOUT ( 11U)
/* Timeout to wait for current conversion on going to be completed. */
/* Timeout fixed to worst case, for 1 channel. */
/* - maximum sampling time (601.5 adc_clk) */
/* - ADC resolution (Tsar 12 bits= 12.5 adc_clk) */
/* - ADC clock (from PLL with prescaler 256 (devices STM32F30xx)) */
/* Unit: cycles of CPU clock. */
#define ADC_CONVERSION_TIME_MAX_CPU_CYCLES ( 156928U)
/* Delay for ADC stabilization time (ADC voltage regulator start-up time) */
/* Maximum delay is 10us (refer to device datasheet, param. TADCVREG_STUP). */
/* Unit: us */
#define ADC_STAB_DELAY_US ( 10U)
/* Delay for temperature sensor stabilization time. */
/* Maximum delay is 10us (refer device datasheet, parameter tSTART). */
/* Unit: us */
#define ADC_TEMPSENSOR_DELAY_US ( 10U)
#endif /* STM32F302xE || STM32F303xE || STM32F398xx || */
/* STM32F302xC || STM32F303xC || STM32F358xx || */
/* STM32F303x8 || STM32F334x8 || STM32F328xx || */
/* STM32F301x8 || STM32F302x8 || STM32F318xx */
#if defined(STM32F373xC) || defined(STM32F378xx)
/* Timeout values for ADC enable and disable settling time. */
/* Values defined to be higher than worst cases: low clocks freq, */
/* maximum prescaler. */
/* Ex of profile low frequency : Clock source at 0.1 MHz, ADC clock */
/* prescaler 4U, sampling time 12.5 ADC clock cycles, resolution 12 bits. */
/* Unit: ms */
#define ADC_ENABLE_TIMEOUT ( 2U)
#define ADC_DISABLE_TIMEOUT ( 2U)
/* Delay for ADC calibration: */
/* Hardware prerequisite before starting a calibration: the ADC must have */
/* been in power-on state for at least two ADC clock cycles. */
/* Unit: ADC clock cycles */
#define ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES ( 2U)
/* Timeout value for ADC calibration */
/* Value defined to be higher than worst cases: low clocks freq, */
/* maximum prescaler. */
/* Ex of profile low frequency : Clock source at 0.1 MHz, ADC clock */
/* prescaler 4U, sampling time 12.5 ADC clock cycles, resolution 12 bits. */
/* Unit: ms */
#define ADC_CALIBRATION_TIMEOUT ( 10U)
/* Delay for ADC stabilization time. */
/* Maximum delay is 1us (refer to device datasheet, parameter tSTAB). */
/* Unit: us */
#define ADC_STAB_DELAY_US ( 1U)
/* Delay for temperature sensor stabilization time.
没有合适的资源?快使用搜索试试~ 我知道了~
BLDC 6步控制代码 完整可直接使用
共1256个文件
h:424个
c:296个
s:209个
需积分: 12 1 下载量 89 浏览量
2022-12-08
14:22:45
上传
评论
收藏 16.13MB RAR 举报
温馨提示
适合6步方波控制
资源推荐
资源详情
资源评论
收起资源包目录
BLDC 6步控制代码 完整可直接使用 (1256个子文件)
STM32F030R8-Nucleo Configuration.axf 491KB
P-NUCLEO-IHM001.bin 64KB
X-CUBE-SPN7.bin 25KB
X-CUBE-SPN7.bin 21KB
X-CUBE-SPN7.bin 21KB
X-CUBE-SPN7.bin 15KB
STM32Cube_components.bmp 1.44MB
Eval_archi.bmp 624KB
logo.bmp 7KB
stm32f3xx_hal_adc_ex.c 312KB
stm32f3xx_hal_hrtim.c 295KB
stm32f4xx_hal_cryp_ex.c 214KB
stm32f4xx_hal_tim.c 176KB
stm32f0xx_hal_tim.c 170KB
stm32f4xx_hal_i2c.c 170KB
stm32f4xx_hal_cryp.c 170KB
stm32f3xx_hal_tim.c 168KB
stm32f4xx_hal_fmpi2c.c 167KB
stm32f1xx_hal_tim.c 166KB
stm32f3xx_hal_i2c.c 159KB
stm32f0xx_hal_i2c.c 159KB
stm32f4xx_hal_rcc_ex.c 148KB
stm32f4xx_hal_dfsdm.c 135KB
stm32f0xx_hal_spi.c 124KB
stm32f1xx_hal_i2c.c 122KB
stm32f3xx_hal_spi.c 121KB
stm32f1xx_hal_sd.c 108KB
stm32f4xx_hal_spi.c 101KB
stm32f3xx_ll_adc.c 100KB
stm32f3xx_hal_tim_ex.c 98KB
stm32f0xx_hal_uart.c 98KB
stm32f3xx_hal_uart.c 95KB
stm32f4xx_hal_sd.c 95KB
stm32f0xx_hal_smartcard.c 91KB
stm32f3xx_hal_smartcard.c 90KB
stm32f0xx_hal_usart.c 89KB
stm32f3xx_hal_sdadc.c 88KB
stm32f0xx_hal_irda.c 87KB
stm32f4xx_hal_uart.c 86KB
stm32f4xx_hal_mmc.c 85KB
stm32f0xx_hal_adc.c 84KB
stm32f3xx_hal_irda.c 82KB
stm32f4xx_hal_qspi.c 81KB
stm32f3xx_hal_usart.c 81KB
stm32f1xx_hal_adc.c 81KB
stm32f4xx_hal_usart.c 78KB
stm32f1xx_hal_spi.c 78KB
stm32f0xx_hal_smbus.c 77KB
stm32f3xx_hal_smbus.c 75KB
stm32f4xx_hal_eth.c 74KB
stm32f4xx_hal_irda.c 72KB
stm32f4xx_hal_dsi.c 72KB
stm32f1xx_hal_eth.c 72KB
stm32f4xx_hal_sai.c 70KB
stm32f4xx_hal_smartcard.c 68KB
stm32f4xx_hal_tim_ex.c 68KB
stm32f0xx_hal_tim_ex.c 67KB
stm32f3xx_hal_rcc_ex.c 66KB
stm32f3xx_ll_comp.c 65KB
stm32f1xx_hal_usart.c 65KB
stm32f1xx_ll_usb.c 64KB
stm32f4xx_hal_adc.c 63KB
stm32f1xx_hal_uart.c 63KB
stm32f1xx_hal_tim_ex.c 63KB
stm32f4xx_hal_ltdc.c 63KB
stm32f4xx_hal_nand.c 63KB
stm32f4xx_ll_fmc.c 61KB
stm32f4xx_hal_hash.c 60KB
stm32f4xx_hal_dma2d.c 59KB
stm32f4xx_hal_rtc_ex.c 58KB
stm32f3xx_ll_tim.c 58KB
stm32f0xx_hal_can.c 56KB
stm32f3xx_hal_i2s_ex.c 55KB
stm32f4xx_hal_can.c 54KB
stm32f3xx_hal_rtc.c 54KB
stm32f4xx_ll_usb.c 54KB
stm32f1xx_hal_adc_ex.c 54KB
stm32f4xx_hal_rtc.c 54KB
stm32f4xx_hal_lptim.c 53KB
stm32f4xx_hal_hash_ex.c 53KB
stm32f1xx_hal_rtc.c 53KB
stm32f4xx_hal_flash_ex.c 52KB
stm32f4xx_hal_i2s.c 52KB
stm32f4xx_ll_rcc.c 52KB
stm32f1xx_hal_irda.c 52KB
stm32f4xx_ll_sdmmc.c 50KB
stm32f3xx_hal_rtc_ex.c 50KB
stm32f0xx_hal_rcc.c 50KB
stm32f0xx_hal_rtc_ex.c 49KB
stm32f1xx_hal_i2s.c 49KB
6Step_Lib.c 48KB
stm32f0xx_hal_i2s.c 48KB
stm32f1xx_hal_rcc.c 48KB
stm32f0xx_hal_rtc.c 47KB
stm32f1xx_hal_can.c 47KB
stm32f1xx_hal_smartcard.c 46KB
stm32f4xx_ll_tim.c 46KB
stm32f3xx_hal_can.c 46KB
stm32f0xx_ll_tim.c 45KB
stm32f3xx_hal_i2s.c 45KB
共 1256 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
sqc_hik
- 粉丝: 1
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- mybatis动态sql及其JAVA示例
- 微软常用运行库 游戏运行库 VC++各个版本
- 微信小程序开发教程.pptx
- MyBatis动态SQL是一种强大的特性,它允许我们在SQL语句中根据条件动态地添加或删除某些部分,从而实现更加灵活和高效的数据
- 锐捷网络认证中心网络管理.pdf
- MyBatis动态SQL是一种强大的特性,它允许我们在SQL语句中根据条件动态地添加或删除某些部分,从而实现更加灵活和高效的数据
- SD8233LF是一款用于单按键触摸及接近感应开关,其用途是替代传统的机械型开关芯片IC
- 基于YOLOv5的烟雾火焰检测算法研究
- 基于STM32的联合调试侦听设备解决方案原理图PCB源文件调试工具视频(大赛作品)
- MyBatis动态SQL是一种强大的特性,它允许我们在SQL语句中根据条件动态地添加或删除某些部分,从而实现更加灵活和高效的数据
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功