Functions
HAL Control functions
Peripheral Driver » HAL Driver » HAL » Functions

HAL Control functions. More...

Collaboration diagram for HAL Control functions:

## Functions
void | hal_suspend_tick (void)
| Suspend Tick increment. More...
void | hal_resume_tick (void)
| Resume Tick increment. More...
uint32_t | hal_get_hal_version (void)
| This function returns the HAL revision. More...

## Detailed Description

HAL Control functions.

     ===============================================================================
                          ##### HAL Control functions #####
     ===============================================================================
        [..]  This section provides functions allowing to:
          (+) Suspend the time base source interrupt
          (+) Resume the time base source interrupt
          (+) Get the HAL API driver version

## Function Documentation

## ◆ hal_get_hal_version()

uint32_t hal_get_hal_version | ( | void |  | ) |

This function returns the HAL revision.

Returns
  version: 0xXYZR (8 bits for each decimal, R for RC)

## ◆ hal_resume_tick()

void hal_resume_tick | ( | void |  | ) |

Resume Tick increment.

Note
  In the default implementation , SysTick timer is the source of time base. It is used to generate interrupts at regular time intervals. Once hal_resume_tick() is called, the SysTick interrupt will be enabled so Tick increment is resumed. The function is declared as __WEAK to be overwritten in case of other implementations in user file.

## ◆ hal_suspend_tick()

void hal_suspend_tick | ( | void |  | ) |

Suspend Tick increment.

Note
  In the default implementation , SysTick timer is the source of time base. It is used to generate interrupts at regular time intervals. Once hal_suspend_tick() is called, the SysTick interrupt will be disabled so Tick increment is suspended. This function is declared as __WEAK to be overwritten in case of other implementations in user file.