Prusa MINI Firmware overview
TIM_Exported_Functions_Group1
Collaboration diagram for TIM_Exported_Functions_Group1:

Functions

HAL_StatusTypeDef HAL_TIM_Base_Init (TIM_HandleTypeDef *htim)
 
HAL_StatusTypeDef HAL_TIM_Base_DeInit (TIM_HandleTypeDef *htim)
 
void HAL_TIM_Base_MspInit (TIM_HandleTypeDef *htim)
 TIM_Base MSP Initialization This function configures the hardware resources used in this example. More...
 
void HAL_TIM_Base_MspDeInit (TIM_HandleTypeDef *htim)
 TIM_Base MSP De-Initialization This function freeze the hardware resources used in this example. More...
 
HAL_StatusTypeDef HAL_TIM_Base_Start (TIM_HandleTypeDef *htim)
 
HAL_StatusTypeDef HAL_TIM_Base_Stop (TIM_HandleTypeDef *htim)
 
HAL_StatusTypeDef HAL_TIM_Base_Start_IT (TIM_HandleTypeDef *htim)
 
HAL_StatusTypeDef HAL_TIM_Base_Stop_IT (TIM_HandleTypeDef *htim)
 
HAL_StatusTypeDef HAL_TIM_Base_Start_DMA (TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length)
 
HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA (TIM_HandleTypeDef *htim)
 

Detailed Description

Function Documentation

◆ HAL_TIM_Base_Init()

HAL_StatusTypeDef HAL_TIM_Base_Init ( TIM_HandleTypeDef htim)
Here is the caller graph for this function:

◆ HAL_TIM_Base_DeInit()

HAL_StatusTypeDef HAL_TIM_Base_DeInit ( TIM_HandleTypeDef htim)

◆ HAL_TIM_Base_MspInit()

void HAL_TIM_Base_MspInit ( TIM_HandleTypeDef htim_base)

TIM_Base MSP Initialization This function configures the hardware resources used in this example.

Parameters
htim_baseTIM_Base handle pointer
Return values
None
386  {
387 
388  if (htim_base->Instance == TIM1) {
389  /* USER CODE BEGIN TIM1_MspInit 0 */
390 
391  /* USER CODE END TIM1_MspInit 0 */
392  /* Peripheral clock enable */
394  /* USER CODE BEGIN TIM1_MspInit 1 */
395 
396  /* USER CODE END TIM1_MspInit 1 */
397  } else if (htim_base->Instance == TIM2) {
398  /* USER CODE BEGIN TIM2_MspInit 0 */
399 
400  /* USER CODE END TIM2_MspInit 0 */
401  /* Peripheral clock enable */
402  __HAL_RCC_TIM2_CLK_ENABLE();
403  /* USER CODE BEGIN TIM2_MspInit 1 */
404 
405  /* USER CODE END TIM2_MspInit 1 */
406  } else if (htim_base->Instance == TIM3) {
407  /* USER CODE BEGIN TIM3_MspInit 0 */
408 
409  /* USER CODE END TIM3_MspInit 0 */
410  /* Peripheral clock enable */
411  __HAL_RCC_TIM3_CLK_ENABLE();
412  /* USER CODE BEGIN TIM3_MspInit 1 */
413 
414  /* USER CODE END TIM3_MspInit 1 */
415  } else if (htim_base->Instance == TIM14) {
416  /* USER CODE BEGIN TIM14_MspInit 0 */
417 
418  /* USER CODE END TIM14_MspInit 0 */
419  /* Peripheral clock enable */
420  __HAL_RCC_TIM14_CLK_ENABLE();
421  /* TIM14 interrupt Init */
422  HAL_NVIC_SetPriority(TIM8_TRG_COM_TIM14_IRQn, 5, 0);
423  HAL_NVIC_EnableIRQ(TIM8_TRG_COM_TIM14_IRQn);
424  /* USER CODE BEGIN TIM14_MspInit 1 */
425 
426  /* USER CODE END TIM14_MspInit 1 */
427  }
428 }
Here is the call graph for this function:

◆ HAL_TIM_Base_MspDeInit()

void HAL_TIM_Base_MspDeInit ( TIM_HandleTypeDef htim_base)

TIM_Base MSP De-Initialization This function freeze the hardware resources used in this example.

Parameters
htim_baseTIM_Base handle pointer
Return values
None
500  {
501 
502  if (htim_base->Instance == TIM1) {
503  /* USER CODE BEGIN TIM1_MspDeInit 0 */
504 
505  /* USER CODE END TIM1_MspDeInit 0 */
506  /* Peripheral clock disable */
508  /* USER CODE BEGIN TIM1_MspDeInit 1 */
509 
510  /* USER CODE END TIM1_MspDeInit 1 */
511  } else if (htim_base->Instance == TIM2) {
512  /* USER CODE BEGIN TIM2_MspDeInit 0 */
513 
514  /* USER CODE END TIM2_MspDeInit 0 */
515  /* Peripheral clock disable */
516  __HAL_RCC_TIM2_CLK_DISABLE();
517  /* USER CODE BEGIN TIM2_MspDeInit 1 */
518 
519  /* USER CODE END TIM2_MspDeInit 1 */
520  } else if (htim_base->Instance == TIM3) {
521  /* USER CODE BEGIN TIM3_MspDeInit 0 */
522 
523  /* USER CODE END TIM3_MspDeInit 0 */
524  /* Peripheral clock disable */
525  __HAL_RCC_TIM3_CLK_DISABLE();
526  /* USER CODE BEGIN TIM3_MspDeInit 1 */
527 
528  /* USER CODE END TIM3_MspDeInit 1 */
529  } else if (htim_base->Instance == TIM14) {
530  /* USER CODE BEGIN TIM14_MspDeInit 0 */
531 
532  /* USER CODE END TIM14_MspDeInit 0 */
533  /* Peripheral clock disable */
534  __HAL_RCC_TIM14_CLK_DISABLE();
535 
536  /* TIM14 interrupt DeInit */
537  HAL_NVIC_DisableIRQ(TIM8_TRG_COM_TIM14_IRQn);
538  /* USER CODE BEGIN TIM14_MspDeInit 1 */
539 
540  /* USER CODE END TIM14_MspDeInit 1 */
541  }
542 }
Here is the call graph for this function:

◆ HAL_TIM_Base_Start()

HAL_StatusTypeDef HAL_TIM_Base_Start ( TIM_HandleTypeDef htim)

◆ HAL_TIM_Base_Stop()

HAL_StatusTypeDef HAL_TIM_Base_Stop ( TIM_HandleTypeDef htim)

◆ HAL_TIM_Base_Start_IT()

HAL_StatusTypeDef HAL_TIM_Base_Start_IT ( TIM_HandleTypeDef htim)
Here is the caller graph for this function:

◆ HAL_TIM_Base_Stop_IT()

HAL_StatusTypeDef HAL_TIM_Base_Stop_IT ( TIM_HandleTypeDef htim)

◆ HAL_TIM_Base_Start_DMA()

HAL_StatusTypeDef HAL_TIM_Base_Start_DMA ( TIM_HandleTypeDef htim,
uint32_t *  pData,
uint16_t  Length 
)

◆ HAL_TIM_Base_Stop_DMA()

HAL_StatusTypeDef HAL_TIM_Base_Stop_DMA ( TIM_HandleTypeDef htim)
__HAL_RCC_TIM1_CLK_ENABLE
#define __HAL_RCC_TIM1_CLK_ENABLE()
Definition: stm32f4xx_hal_rcc.h:580
__HAL_RCC_TIM1_CLK_DISABLE
#define __HAL_RCC_TIM1_CLK_DISABLE()
Definition: stm32f4xx_hal_rcc.h:637
HAL_NVIC_SetPriority
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
TIM_HandleTypeDef::Instance
TIM_TypeDef * Instance
Definition: stm32f4xx_hal_tim.h:289
HAL_NVIC_EnableIRQ
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
HAL_NVIC_DisableIRQ
void HAL_NVIC_DisableIRQ(IRQn_Type IRQn)