757703280568838STM32F103(HAL)_SWO.zip
大小:460.75KB
价格:42积分
下载量:0
评分:
5.0
上传者:weixin_61874953
更新日期:2025-09-22

757703280568838STM32F103(HAL)_SWO.zip

资源文件列表(大概)

文件名
大小
STM32F103(HAL)_SWO/
-
STM32F103(HAL)_SWO/STM32F1/
-
STM32F103(HAL)_SWO/STM32F1/Demo/
-
STM32F103(HAL)_SWO/STM32F1/Demo/.mxproject
7.9KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Inc/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Inc/gpio.h
1.48KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Inc/main.h
2.13KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Inc/stm32f1xx_hal_conf.h
14.36KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Inc/stm32f1xx_it.h
2.06KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Src/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Src/gpio.c
2.04KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Src/main.c
5.19KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Src/stm32f1xx_hal_msp.c
2.46KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Src/stm32f1xx_it.c
5.44KB
STM32F103(HAL)_SWO/STM32F1/Demo/Core/Src/system_stm32f1xx.c
16.01KB
STM32F103(HAL)_SWO/STM32F1/Demo/Demo.ioc
3.87KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/STM32F1xx/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/STM32F1xx/Include/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h
949.16KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h
8.58KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h
3.26KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/arm_common_tables.h
7.09KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/arm_const_structs.h
3.85KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/arm_math.h
246.42KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/cmsis_armcc.h
23.85KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/cmsis_armcc_V6.h
53.79KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/cmsis_gcc.h
40.46KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cm0.h
36.35KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cm0plus.h
43.75KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cm3.h
101.47KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cm4.h
111.81KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cm7.h
136.39KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cmFunc.h
3.54KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cmInstr.h
3.55KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_cmSimd.h
3.58KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_sc000.h
44.2KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/CMSIS/Include/core_sc300.h
100.4KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h
177.62KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h
12.48KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h
18.37KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h
8.24KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h
19.02KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h
13.77KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h
10.34KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h
37.34KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h
12.99KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h
36.6KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
13.04KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h
68.05KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h
100.44KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h
81.68KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
15.75KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/
-
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c
21.1KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c
20.14KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c
29.3KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c
30.79KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c
37.5KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c
21.99KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c
5.38KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c
22.27KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c
50.56KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c
31.52KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c
167.94KB
STM32F103(HAL)_SWO/STM32F1/Demo/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c
60.74KB
STM32F103(HAL)_SWO/STM32F1/Demo/EWARM/
-
STM32F103(HAL)_SWO/STM32F1/Demo/EWARM/Demo.ewd
52.43KB
STM32F103(HAL)_SWO/STM32F1/Demo/EWARM/Demo.ewp
40.19KB
STM32F103(HAL)_SWO/STM32F1/Demo/EWARM/Project.eww
148B
STM32F103(HAL)_SWO/STM32F1/Demo/EWARM/startup_stm32f103xe.s
17.42KB
STM32F103(HAL)_SWO/STM32F1/Demo/EWARM/stm32f103xe_flash.icf
1.32KB
STM32F103(HAL)_SWO/STM32F1/Demo/EWARM/stm32f103xe_sram.icf
1.31KB
STM32F103(HAL)_SWO/STM32F1/Demo/MDK-ARM/
-
STM32F103(HAL)_SWO/STM32F1/Demo/MDK-ARM/Demo.uvoptx
13.49KB
STM32F103(HAL)_SWO/STM32F1/Demo/MDK-ARM/Demo.uvprojx
18.04KB
STM32F103(HAL)_SWO/STM32F1/Demo/MDK-ARM/startup_stm32f103xe.s
15.99KB

资源内容介绍

757703280568838STM32F103(HAL)_SWO.zip
/** ****************************************************************************** * @file stm32f1xx_hal_tim.c * @author MCD Application Team * @brief TIM HAL module driver * This file provides firmware functions to manage the following * functionalities of the Timer (TIM) peripheral: * + Time Base Initialization * + Time Base Start * + Time Base Start Interruption * + Time Base Start DMA * + Time Output Compare/PWM Initialization * + Time Output Compare/PWM Channel Configuration * + Time Output Compare/PWM Start * + Time Output Compare/PWM Start Interruption * + Time Output Compare/PWM Start DMA * + Time Input Capture Initialization * + Time Input Capture Channel Configuration * + Time Input Capture Start * + Time Input Capture Start Interruption * + Time Input Capture Start DMA * + Time One Pulse Initialization * + Time One Pulse Channel Configuration * + Time One Pulse Start * + Time Encoder Interface Initialization * + Time Encoder Interface Start * + Time Encoder Interface Start Interruption * + Time Encoder Interface Start DMA * + Commutation Event configuration with Interruption and DMA * + Time OCRef clear configuration * + Time External Clock configuration @verbatim ============================================================================== ##### TIMER Generic features ##### ============================================================================== [..] The Timer features include: (#) 16-bit up, down, up/down auto-reload counter. (#) 16-bit programmable prescaler allowing dividing (also on the fly) the counter clock frequency either by any factor between 1 and 65536. (#) Up to 4 independent channels for: (++) Input Capture (++) Output Compare (++) PWM generation (Edge and Center-aligned Mode) (++) One-pulse mode output ##### How to use this driver ##### ============================================================================== [..] (#) Initialize the TIM low level resources by implementing the following functions depending from feature used : (++) Time Base : HAL_TIM_Base_MspInit() (++) Input Capture : HAL_TIM_IC_MspInit() (++) Output Compare : HAL_TIM_OC_MspInit() (++) PWM generation : HAL_TIM_PWM_MspInit() (++) One-pulse mode output : HAL_TIM_OnePulse_MspInit() (++) Encoder mode output : HAL_TIM_Encoder_MspInit() (#) Initialize the TIM low level resources : (##) Enable the TIM interface clock using __HAL_RCC_TIMx_CLK_ENABLE(); (##) TIM pins configuration (+++) Enable the clock for the TIM GPIOs using the following function: __HAL_RCC_GPIOx_CLK_ENABLE(); (+++) Configure these TIM pins in Alternate function mode using HAL_GPIO_Init(); (#) The external Clock can be configured, if needed (the default clock is the internal clock from the APBx), using the following function: HAL_TIM_ConfigClockSource, the clock configuration should be done before any start function. (#) Configure the TIM in the desired functioning mode using one of the Initialization function of this driver: (++) HAL_TIM_Base_Init: to use the Timer to generate a simple time base (++) HAL_TIM_OC_Init and HAL_TIM_OC_ConfigChannel: to use the Timer to generate an Output Compare signal. (++) HAL_TIM_PWM_Init and HAL_TIM_PWM_ConfigChannel: to use the Timer to generate a PWM signal. (++) HAL_TIM_IC_Init and HAL_TIM_IC_ConfigChannel: to use the Timer to measure an external signal. (++) HAL_TIM_OnePulse_Init and HAL_TIM_OnePulse_ConfigChannel: to use the Timer in One Pulse Mode. (++) HAL_TIM_Encoder_Init: to use the Timer Encoder Interface. (#) Activate the TIM peripheral using one of the start functions depending from the feature used: (++) Time Base : HAL_TIM_Base_Start(), HAL_TIM_Base_Start_DMA(), HAL_TIM_Base_Start_IT() (++) Input Capture : HAL_TIM_IC_Start(), HAL_TIM_IC_Start_DMA(), HAL_TIM_IC_Start_IT() (++) Output Compare : HAL_TIM_OC_Start(), HAL_TIM_OC_Start_DMA(), HAL_TIM_OC_Start_IT() (++) PWM generation : HAL_TIM_PWM_Start(), HAL_TIM_PWM_Start_DMA(), HAL_TIM_PWM_Start_IT() (++) One-pulse mode output : HAL_TIM_OnePulse_Start(), HAL_TIM_OnePulse_Start_IT() (++) Encoder mode output : HAL_TIM_Encoder_Start(), HAL_TIM_Encoder_Start_DMA(), HAL_TIM_Encoder_Start_IT(). (#) The DMA Burst is managed with the two following functions: HAL_TIM_DMABurst_WriteStart() HAL_TIM_DMABurst_ReadStart() @endverbatim ****************************************************************************** * @attention * * <h2><center>&copy; 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. * ****************************************************************************** */#include "stm32f1xx_hal.h"/** @addtogroup STM32F1xx_HAL_Driver * @{ *//** @defgroup TIM TIM * @brief TIM HAL module driver * @{ */#ifdef HAL_TIM_MODULE_ENABLED/** @defgroup TIM_Private_Functions TIM Private Functions * @{ */static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config);static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config);static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx,

用户评论 (0)

发表评论

captcha