/**
******************************************************************************
* @file stm32h7xx_hal_hrtim.c
* @author MCD Application Team
* @brief HRTIM HAL module driver.
* This file provides firmware functions to manage the following
* functionalities of the High Resolution Timer (HRTIM) peripheral:
* + HRTIM Initialization
* + Timer Time Base Unit Configuration
* + Simple Time Base Start/Stop
* + Simple Time Base Start/Stop Interrupt
* + Simple Time Base Start/Stop DMA Request
* + Simple Output Compare/PWM Channel Configuration
* + Simple Output Compare/PWM Channel Start/Stop Interrupt
* + Simple Output Compare/PWM Channel Start/Stop DMA Request
* + Simple Input Capture Channel Configuration
* + Simple Input Capture Channel Start/Stop Interrupt
* + Simple Input Capture Channel Start/Stop DMA Request
* + Simple One Pulse Channel Configuration
* + Simple One Pulse Channel Start/Stop Interrupt
* + HRTIM External Synchronization Configuration
* + HRTIM Burst Mode Controller Configuration
* + HRTIM Burst Mode Controller Enabling
* + HRTIM External Events Conditioning Configuration
* + HRTIM Faults Conditioning Configuration
* + HRTIM Faults Enabling
* + HRTIM ADC trigger Configuration
* + Waveform Timer Configuration
* + Waveform Event Filtering Configuration
* + Waveform Dead Time Insertion Configuration
* + Waveform Chopper Mode Configuration
* + Waveform Compare Unit Configuration
* + Waveform Capture Unit Configuration
* + Waveform Output Configuration
* + Waveform Counter Start/Stop
* + Waveform Counter Start/Stop Interrupt
* + Waveform Counter Start/Stop DMA Request
* + Waveform Output Enabling
* + Waveform Output Level Set/Get
* + Waveform Output State Get
* + Waveform Burst DMA Operation Configuration
* + Waveform Burst DMA Operation Start
* + Waveform Timer Counter Software Reset
* + Waveform Capture Software Trigger
* + Waveform Burst Mode Controller Software Trigger
* + Waveform Timer Pre-loadable Registers Update Enabling
* + Waveform Timer Pre-loadable Registers Software Update
* + Waveform Timer Delayed Protection Status Get
* + Waveform Timer Burst Status Get
* + Waveform Timer Push-Pull Status Get
* + Peripheral State Get
@verbatim
==============================================================================
##### Simple mode v.s. waveform mode #####
==============================================================================
[..] The HRTIM HAL API is split into 2 categories:
(#)Simple functions: these functions allow for using a HRTIM timer as a
general purpose timer with high resolution capabilities.
Following simple modes are proposed:
(+)Output compare mode
(+)PWM output mode
(+)Input capture mode
(+)One pulse mode
HRTIM simple modes are managed through the set of functions named
HAL_HRTIM_Simple<Function>. These functions are similar in name and usage
to the one defined for the TIM peripheral. When a HRTIM timer operates in
simple mode, only a very limited set of HRTIM features are used.
(#)Waveform functions: These functions allow taking advantage of the HRTIM
flexibility to produce numerous types of control signal. When a HRTIM timer
operates in waveform mode, all the HRTIM features are accessible without
any restriction. HRTIM waveform modes are managed through the set of
functions named HAL_HRTIM_Waveform<Function>
==============================================================================
##### How to use this driver #####
==============================================================================
[..]
(#)Initialize the HRTIM low level resources by implementing the
HAL_HRTIM_MspInit() function:
(##)Enable the HRTIM clock source using __HRTIMx_CLK_ENABLE()
(##)Connect HRTIM pins to MCU I/Os
(+++) Enable the clock for the HRTIM GPIOs using the following
function: __GPIOx_CLK_ENABLE()
(+++) Configure these GPIO pins in Alternate Function mode using
HAL_GPIO_Init()
(##)When using DMA to control data transfer (e.g HAL_HRTIM_SimpleBaseStart_DMA())
(+++)Enable the DMAx interface clock using __DMAx_CLK_ENABLE()
(+++)Initialize the DMA handle
(+++)Associate the initialized DMA handle to the appropriate DMA
handle of the HRTIM handle using __HAL_LINKDMA()
(+++)Initialize the DMA channel using HAL_DMA_Init()
(+++)Configure the priority and enable the NVIC for the transfer
complete interrupt on the DMA channel using HAL_NVIC_SetPriority()
and HAL_NVIC_EnableIRQ()
(##)In case of using interrupt mode (e.g HAL_HRTIM_SimpleBaseStart_IT())
(+++)Configure the priority and enable the NVIC for the concerned
HRTIM interrupt using HAL_NVIC_SetPriority() and HAL_NVIC_EnableIRQ()
(#)Initialize the HRTIM HAL using HAL_HRTIM_Init(). The HRTIM configuration
structure (field of the HRTIM handle) specifies which global interrupt of
whole HRTIM must be enabled (Burst mode period, System fault, Faults).
It also contains the HRTIM external synchronization configuration. HRTIM
can act as a master (generating a synchronization signal) or as a slave
(waiting for a trigger to be synchronized).
(#) Configure HRTIM resources shared by all HRTIM timers
(##)Burst Mode Controller:
(+++)HAL_HRTIM_BurstModeConfig(): configures the HRTIM burst mode
controller: operating mode (continuous or -shot mode), clock
(source, prescaler) , trigger(s), period, idle duration.
(##)External Events Conditionning:
(+++)HAL_HRTIM_EventConfig(): configures the conditioning of an
external event channel: source, polarity, edge-sensitivity.
External event can be used as triggers (timer reset, input
capture, burst mode, ADC triggers, delayed protection, �)
They can also be used to set or reset timer outputs. Up to
10 event channels are available.
(+++)HAL_HRTIM_EventPrescalerConfig(): configures the external
event sampling clock (used for digital filtering).
(##)Fault Conditionning:
(+++)HAL_HRTIM_FaultConfig(): configures the conditioning of a
fault channel: source, polarity, edge-sensitivity. Fault
channels are used to disable the outputs in case of an
abnormal operation. Up to 5 fault channels are available.
(+++)HAL_HRTIM_FaultPrescalerConfig(): configures the fault
sampling clock (used for digital filtering).
(+++)HAL_HRTIM_FaultModeCtl(): Enables or disables fault input(s)
circuitry. By default all fault inputs are disabled.
(##)ADC trigger:
(+++)HAL_HRTIM_ADCTriggerConfig(): configures the source triggering
the update of the ADC trigger register and the ADC trigger.
4
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32H750实现SPI驱动【支持STM32H7系列单片机_HAL库驱动】.zip (215个子文件)
stm32h7xx_hal_hrtim.c 288KB
stm32h7xx_hal_tim.c 184KB
stm32h7xx_hal_fdcan.c 166KB
stm32h7xx_hal_i2c.c 158KB
stm32h7xx_hal_adc.c 129KB
stm32h7xx_hal_cryp.c 127KB
stm32h7xx_hal_jpeg.c 123KB
stm32h7xx_hal_dfsdm.c 108KB
stm32h7xx_hal_hash.c 102KB
stm32h7xx_hal_spi.c 100KB
stm32h7xx_hal_adc_ex.c 99KB
stm32h7xx_hal_uart.c 97KB
stm32h7xx_hal_smartcard.c 93KB
stm32h7xx_hal_rcc_ex.c 93KB
stm32h7xx_hal_sd.c 92KB
stm32h7xx_hal_eth.c 92KB
stm32h7xx_hal_mmc.c 90KB
stm32h7xx_hal_usart.c 81KB
stm32h7xx_hal_irda.c 80KB
stm32h7xx_hal_sai.c 74KB
stm32h7xx_hal_tim_ex.c 74KB
stm32h7xx_hal_smbus.c 74KB
stm32h7xx_hal_qspi.c 73KB
lcd.c 72KB
stm32h7xx_hal_mdma.c 66KB
stm32h7xx_hal_dma.c 63KB
stm32h7xx_hal_ltdc.c 63KB
stm32h7xx_hal_nand.c 63KB
stm32h7xx_hal_dma2d.c 62KB
stm32h7xx_hal_i2s.c 60KB
stm32h7xx_hal_rtc_ex.c 57KB
stm32h7xx_hal_lptim.c 53KB
stm32h7xx_ll_sdmmc.c 52KB
stm32h7xx_hal_rtc.c 51KB
stm32h7xx_hal_rcc.c 51KB
stm32h7xx_ll_usb.c 50KB
stm32h7xx_hal_flash_ex.c 48KB
stm32h7xx_hal_pwr_ex.c 46KB
stm32h7xx_hal_swpmi.c 46KB
stm32h7xx_hal_hash_ex.c 44KB
stm32h7xx_hal_spdifrx.c 41KB
stm32h7xx_hal_dac.c 41KB
stm32h7xx_ll_fmc.c 40KB
stm32h7xx_hal_pcd.c 38KB
stm32h7xx_hal_opamp.c 37KB
stm32h7xx_hal_hcd.c 36KB
stm32h7xx_hal.c 34KB
stm32h7xx_hal_nor.c 33KB
stm32h7xx_hal_flash.c 32KB
stm32h7xx_hal_dcmi.c 30KB
stm32h7xx_hal_i2s_ex.c 30KB
stm32h7xx_hal_comp.c 29KB
stm32h7xx_hal_sdram.c 27KB
stm32h7xx_hal_eth_ex.c 24KB
stm32h7xx_hal_dma_ex.c 23KB
stm32h7xx_hal_dac_ex.c 23KB
stm32h7xx_hal_sram.c 23KB
stm32h7xx_hal_pwr.c 22KB
stm32h7xx_hal_cec.c 22KB
ltdc.c 21KB
stm32h7xx_hal_cortex.c 20KB
stm32h7xx_hal_gpio.c 20KB
system_stm32h7xx.c 20KB
stm32h7xx_hal_mdios.c 20KB
stm32h7xx_hal_crc.c 18KB
stm32h7xx_hal_uart_ex.c 18KB
stm32h7xx_hal_opamp_ex.c 16KB
usmart.c 15KB
stm32h7xx_hal_rng.c 15KB
stm32h7xx_hal_cryp_ex.c 14KB
stm32h7xx_hal_hsem.c 14KB
stm32h7xx_hal_wwdg.c 13KB
usmart_str.c 12KB
stm32h7xx_hal_mmc_ex.c 11KB
stm32h7xx_hal_sd_ex.c 11KB
w25qxx.c 11KB
stm32h7xx_hal_iwdg.c 11KB
stm32h7xx_hal_i2c_ex.c 10KB
stm32h7xx_hal_pcd_ex.c 10KB
sys.c 9KB
stm32h7xx_hal_crc_ex.c 9KB
sdram.c 8KB
stm32h7xx_hal_spi_ex.c 8KB
stm32h7xx_hal_smartcard_ex.c 8KB
stm32h7xx_ll_delayblock.c 7KB
delay.c 6KB
usart.c 6KB
stm32h7xx_it.c 5KB
stm32h7xx_hal_sai_ex.c 5KB
spi.c 4KB
24cxx.c 4KB
mpu.c 4KB
stm32h7xx_hal_msp.c 3KB
myiic.c 3KB
usmart_config.c 3KB
main.c 3KB
key.c 2KB
led.c 1KB
stm32h750xx.h 2.15MB
stm32h7xx_hal_hrtim.h 228KB
共 215 条
- 1
- 2
- 3
资源评论
- weixin_404441652024-10-31这个资源总结的也太全面了吧,内容详实,对我帮助很大。
- m0_466093212023-06-21资源质量不错,和资源描述一致,内容详细,对我很有用。
不脱发的程序猿
- 粉丝: 26w+
- 资源: 5872
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于C语言和汇编语言的简单操作系统内核.zip
- (源码)基于Spring Boot框架的AntOA后台管理系统.zip
- (源码)基于Arduino的红外遥控和灯光控制系统.zip
- (源码)基于STM32的简易音乐键盘系统.zip
- (源码)基于Spring Boot和Vue的管理系统.zip
- (源码)基于Spring Boot框架的报表管理系统.zip
- (源码)基于树莓派和TensorFlow Lite的智能厨具环境监测系统.zip
- (源码)基于OpenCV和Arduino的面部追踪系统.zip
- (源码)基于C++和ZeroMQ的分布式系统中间件.zip
- (源码)基于SSM框架的学生信息管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功