STM32 RTC Scheduler
RTC-based scheduler for ultra-low power applications
stm32l4xx_hal_timebase.c File Reference

This file contains the STM32 HAL timebase implementation. More...

#include "stm32l4xx_hal.h"
#include "stm32l4xx_hal_tim.h"

Go to the source code of this file.

Functions

HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority)
 This function configures the TIM17 as the HAL time base source. More...
 
void HAL_SuspendTick (void)
 Suspend the tick increment. More...
 
void HAL_ResumeTick (void)
 Resume the tick increment. More...
 

Variables

TIM_HandleTypeDef htim17
 

Detailed Description

This file contains the STM32 HAL timebase implementation.

STM32 RTC Scheduler

Author
Akos Pasztor
See also
Please refer to README for detailed information.

Definition in file stm32l4xx_hal_timebase.c.

Function Documentation

◆ HAL_InitTick()

HAL_StatusTypeDef HAL_InitTick ( uint32_t  TickPriority)

This function configures the TIM17 as the HAL time base source.

The timer is configured to provide a 1 ms time base.

Note
This function is called automatically by HAL_Init() at the beginning of the application after reset, or at any time when clock is configured by HAL_RCC_rccClockConfig().
Parameters
TickPriorityThe tick interrupt priority.
Return values
HAL_OKupon success.

Definition at line 33 of file stm32l4xx_hal_timebase.c.

◆ HAL_ResumeTick()

void HAL_ResumeTick ( void  )

Resume the tick increment.

This function resumes the tick increment by enabling the timer update interrupt.

Definition at line 92 of file stm32l4xx_hal_timebase.c.

◆ HAL_SuspendTick()

void HAL_SuspendTick ( void  )

Suspend the tick increment.

This function disables the tick increment by disabling the timer update interrupt.

Definition at line 81 of file stm32l4xx_hal_timebase.c.

Variable Documentation

◆ htim17

TIM_HandleTypeDef htim17

TIM17 peripheral handle

Definition at line 20 of file stm32l4xx_hal_timebase.c.