/**
******************************************************************************
* @file stm32h7xx_hal_hrtim.c
* @author MCD Application Team
* @version V1.2.0
* @date 29-December-2017
* @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 independent triggers are available to start both the regular
and the inject
没有合适的资源?快使用搜索试试~ 我知道了~
micropython1.9.4源码
共2000个文件
c:1359个
h:1319个
py:1025个
5星 · 超过95%的资源 需积分: 43 27 下载量 138 浏览量
2018-10-16
09:04:48
上传
评论
收藏 21.62MB ZIP 举报
温馨提示
python micropython esp8266 esp32 micropython1.9.4 源码
资源推荐
资源详情
资源评论
收起资源包目录
micropython1.9.4源码 (2000个子文件)
stm32h7xx_hal_hrtim.c 277KB
ff.c 221KB
stm32f4xx_hal_cryp_ex.c 203KB
stm32f7xx_hal_cryp_ex.c 202KB
dlmalloc.c 179KB
stm32h7xx_hal_tim.c 176KB
stm32f7xx_hal_tim.c 171KB
stm32f4xx_hal_tim.c 168KB
stm32l4xx_hal_tim.c 167KB
stm32f4xx_hal_i2c.c 164KB
stm32f4xx_hal_cryp.c 162KB
stm32f7xx_hal_cryp.c 162KB
stm32f4xx_hal_fmpi2c.c 162KB
stm32h7xx_hal_fdcan.c 161KB
stm32l4xx_hal_i2c.c 155KB
stm32f7xx_hal_i2c.c 155KB
stm32h7xx_hal_i2c.c 153KB
tasks.c 149KB
stm32f4xx_hal_rcc_ex.c 143KB
compile.c 138KB
stm32f4xx_hal_dfsdm.c 131KB
stm32h7xx_hal_adc.c 125KB
stm32h7xx_hal_cryp.c 120KB
stm32l4xx_hal_adc.c 119KB
stm32l4xx_hal_spi.c 117KB
stm32h7xx_hal_jpeg.c 117KB
stm32f7xx_hal_jpeg.c 116KB
stm32f7xx_hal_spi.c 114KB
stm32l4xx_hal_cryp_ex.c 111KB
stm32l4xx_hal_dfsdm.c 105KB
stm32f7xx_hal_dfsdm.c 104KB
stm32h7xx_hal_dfsdm.c 104KB
mib2.c 103KB
stm32l4xx_hal_hash.c 99KB
stm32f4xx_hal_spi.c 98KB
stm32h7xx_hal_adc_ex.c 97KB
stm32h7xx_hal_spi.c 97KB
stm32h7xx_hal_hash.c 97KB
stm32h7xx_hal_uart.c 95KB
stm32l4xx_hal_rcc_ex.c 94KB
emitnative.c 92KB
stm32l4xx_hal_adc_ex.c 91KB
stm32h7xx_hal_smartcard.c 90KB
stm32f4xx_hal_sd.c 90KB
stm32l4xx_hal_uart.c 90KB
stm32h7xx_hal_rcc_ex.c 90KB
stm32h7xx_hal_eth.c 88KB
stm32l4xx_hal_smartcard.c 88KB
stm32f7xx_hal_smartcard.c 88KB
stm32l4xx_hal_sd.c 86KB
stm32f7xx_hal_sd.c 86KB
stm32h7xx_hal_sd.c 85KB
stm32f7xx_hal_tim_ex.c 84KB
stm32f4xx_hal_uart.c 83KB
patch.c 82KB
stm32f4xx_hal_mmc.c 81KB
queue.c 79KB
stm32h7xx_hal_usart.c 79KB
stm32h7xx_hal_irda.c 78KB
stm32f4xx_hal_qspi.c 78KB
stm32l4xx_hal_irda.c 78KB
stm32l4xx_hal_tim_ex.c 78KB
stm32f7xx_hal_mmc.c 77KB
stm32f4xx_hal_usart.c 76KB
stm32f7xx_hal_irda.c 76KB
objstr.c 76KB
stm32l4xx_hal_qspi.c 76KB
ssltest.c 75KB
stm32l4xx_hal_smbus.c 75KB
stm32f7xx_hal_qspi.c 74KB
stm32h7xx_hal_mmc.c 73KB
stm32l4xx_hal_usart.c 73KB
stm32f7xx_hal_smbus.c 72KB
stm32h7xx_hal_sai.c 72KB
stm32h7xx_hal_smbus.c 72KB
stm32h7xx_hal_tim_ex.c 71KB
stm32f4xx_hal_eth.c 71KB
stm32h7xx_hal_qspi.c 70KB
stm32f4xx_hal_irda.c 70KB
stm32f7xx_hal_eth.c 70KB
stm32f4xx_hal_dsi.c 69KB
stm32f7xx_hal_uart.c 69KB
stm32f7xx_hal_dsi.c 69KB
stm32f7xx_hal_rcc_ex.c 69KB
stm32l4xx_hal_sai.c 68KB
sockets.c 68KB
stm32f4xx_hal_sai.c 67KB
stm32f7xx_hal_sai.c 67KB
stm32l4xx_ll_usb.c 67KB
stm32f4xx_hal_smartcard.c 66KB
tls1.c 65KB
stm32f4xx_hal_tim_ex.c 65KB
usbh_audio.c 64KB
vm.c 64KB
dhcp.c 63KB
stm32h7xx_hal_mdma.c 62KB
driver.c 62KB
stm32f7xx_hal_usart.c 62KB
stm32h7xx_hal_dma.c 61KB
stm32f4xx_hal_adc.c 61KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- PDN2020-08-26不错,很好。
FlyLeeds
- 粉丝: 1
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- libADLMIDI1-1.5.1-bp155.1.7.aarch64.rpm
- 基于python和resnet50的垃圾分类识别项目源码+全部数据.zip
- C语言进阶学习资料,关于预处理,文件处理,结构体,位移运算的学习 大学生期末复习资料,程序设计课程复习资料
- c++少儿编程专业教师使用资料
- box1234567890
- 少儿编程资料,c++少儿编程专业资料
- libADLMIDI1-1.5.1-bp156.2.6.aarch64.rpm
- java源码 仿360buy京东商城源码 京东JavaWeb项目源代码.rar
- libADLMIDI1-1.5.1-1.2.riscv64.rpm
- 基于ASP的BS架构工艺品展示系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功