STM32F4xx_HAL_Driver  1.8.3

HAL Control functions. More...

+ Collaboration diagram for HAL Control functions:

Functions

void HAL_IncTick (void)
 This function is called to increment a global variable "uwTick" used as application time base. More...
 
void HAL_Delay (uint32_t Delay)
 This function provides minimum delay (in milliseconds) based on variable incremented. More...
 
uint32_t HAL_GetTick (void)
 Provides a tick value in millisecond. More...
 
uint32_t HAL_GetTickPrio (void)
 This function returns a tick priority. More...
 
HAL_StatusTypeDef HAL_SetTickFreq (HAL_TickFreqTypeDef Freq)
 Set new tick Freq. More...
 
HAL_TickFreqTypeDef HAL_GetTickFreq (void)
 Return tick frequency. More...
 
void HAL_SuspendTick (void)
 Suspend Tick increment. More...
 
void HAL_ResumeTick (void)
 Resume Tick increment. More...
 
uint32_t HAL_GetHalVersion (void)
 Returns the HAL revision. More...
 
uint32_t HAL_GetREVID (void)
 Returns the device revision identifier. More...
 
uint32_t HAL_GetDEVID (void)
 Returns the device identifier. More...
 
void HAL_DBGMCU_EnableDBGSleepMode (void)
 Enable the Debug Module during SLEEP mode. More...
 
void HAL_DBGMCU_DisableDBGSleepMode (void)
 Disable the Debug Module during SLEEP mode. More...
 
void HAL_DBGMCU_EnableDBGStopMode (void)
 Enable the Debug Module during STOP mode. More...
 
void HAL_DBGMCU_DisableDBGStopMode (void)
 Disable the Debug Module during STOP mode. More...
 
void HAL_DBGMCU_EnableDBGStandbyMode (void)
 Enable the Debug Module during STANDBY mode. More...
 
void HAL_DBGMCU_DisableDBGStandbyMode (void)
 Disable the Debug Module during STANDBY mode. More...
 
void HAL_EnableCompensationCell (void)
 Enables the I/O Compensation Cell. More...
 
void HAL_DisableCompensationCell (void)
 Power-down the I/O Compensation Cell. More...
 
uint32_t HAL_GetUIDw0 (void)
 Returns first word of the unique device identifier (UID based on 96 bits) More...
 
uint32_t HAL_GetUIDw1 (void)
 Returns second word of the unique device identifier (UID based on 96 bits) More...
 
uint32_t HAL_GetUIDw2 (void)
 Returns third word of the unique device identifier (UID based on 96 bits) More...
 
void HAL_EnableMemorySwappingBank (void)
 Enables the Internal FLASH Bank Swapping. More...
 
void HAL_DisableMemorySwappingBank (void)
 Disables the Internal FLASH Bank Swapping. More...
 

Detailed Description

HAL Control functions.

 ===============================================================================
                      ##### HAL Control functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Provide a tick value in millisecond
      (+) Provide a blocking delay in millisecond
      (+) Suspend the time base source interrupt
      (+) Resume the time base source interrupt
      (+) Get the HAL API driver version
      (+) Get the device identifier
      (+) Get the device revision identifier
      (+) Enable/Disable Debug module during SLEEP mode
      (+) Enable/Disable Debug module during STOP mode
      (+) Enable/Disable Debug module during STANDBY mode

Function Documentation

◆ HAL_DBGMCU_DisableDBGSleepMode()

void HAL_DBGMCU_DisableDBGSleepMode ( void  )

Disable the Debug Module during SLEEP mode.

Return values
None

Definition at line 478 of file stm32f4xx_hal.c.

◆ HAL_DBGMCU_DisableDBGStandbyMode()

void HAL_DBGMCU_DisableDBGStandbyMode ( void  )

Disable the Debug Module during STANDBY mode.

Return values
None

Definition at line 514 of file stm32f4xx_hal.c.

◆ HAL_DBGMCU_DisableDBGStopMode()

void HAL_DBGMCU_DisableDBGStopMode ( void  )

Disable the Debug Module during STOP mode.

Return values
None

Definition at line 496 of file stm32f4xx_hal.c.

◆ HAL_DBGMCU_EnableDBGSleepMode()

void HAL_DBGMCU_EnableDBGSleepMode ( void  )

Enable the Debug Module during SLEEP mode.

Return values
None

Definition at line 469 of file stm32f4xx_hal.c.

◆ HAL_DBGMCU_EnableDBGStandbyMode()

void HAL_DBGMCU_EnableDBGStandbyMode ( void  )

Enable the Debug Module during STANDBY mode.

Return values
None

Definition at line 505 of file stm32f4xx_hal.c.

◆ HAL_DBGMCU_EnableDBGStopMode()

void HAL_DBGMCU_EnableDBGStopMode ( void  )

Enable the Debug Module during STOP mode.

Return values
None

Definition at line 487 of file stm32f4xx_hal.c.

◆ HAL_Delay()

__weak void HAL_Delay ( uint32_t  Delay)

This function provides minimum delay (in milliseconds) based on variable incremented.

Note
In the default implementation , SysTick timer is the source of time base. It is used to generate interrupts at regular time intervals where uwTick is incremented.
This function is declared as __weak to be overwritten in case of other implementations in user file.
Parameters
Delayspecifies the delay time length, in milliseconds.
Return values
None

Definition at line 390 of file stm32f4xx_hal.c.

◆ HAL_DisableCompensationCell()

void HAL_DisableCompensationCell ( void  )

Power-down the I/O Compensation Cell.

Note
The I/O compensation cell can be used only when the device supply voltage ranges from 2.4 to 3.6 V.
Return values
None

Definition at line 536 of file stm32f4xx_hal.c.

◆ HAL_DisableMemorySwappingBank()

void HAL_DisableMemorySwappingBank ( void  )

Disables the Internal FLASH Bank Swapping.

Note
This function can be used only for STM32F42xxx/43xxx/469xx/479xx devices.
The default state : Flash Bank1 mapped at 0x08000000 (and aliased @0x00000000) and Flash Bank2 mapped at 0x08100000 (and aliased at 0x00100000)
Return values
None

Definition at line 595 of file stm32f4xx_hal.c.

◆ HAL_EnableCompensationCell()

void HAL_EnableCompensationCell ( void  )

Enables the I/O Compensation Cell.

Note
The I/O compensation cell can be used only when the device supply voltage ranges from 2.4 to 3.6 V.
Return values
None

Definition at line 525 of file stm32f4xx_hal.c.

◆ HAL_EnableMemorySwappingBank()

void HAL_EnableMemorySwappingBank ( void  )

Enables the Internal FLASH Bank Swapping.

Note
This function can be used only for STM32F42xxx/43xxx/469xx/479xx devices.
Flash Bank2 mapped at 0x08000000 (and aliased @0x00000000) and Flash Bank1 mapped at 0x08100000 (and aliased at 0x00100000)
Return values
None

Definition at line 580 of file stm32f4xx_hal.c.

◆ HAL_GetDEVID()

uint32_t HAL_GetDEVID ( void  )

Returns the device identifier.

Return values
Deviceidentifier

Definition at line 460 of file stm32f4xx_hal.c.

◆ HAL_GetHalVersion()

uint32_t HAL_GetHalVersion ( void  )

Returns the HAL revision.

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

Definition at line 442 of file stm32f4xx_hal.c.

◆ HAL_GetREVID()

uint32_t HAL_GetREVID ( void  )

Returns the device revision identifier.

Return values
Devicerevision identifier

Definition at line 451 of file stm32f4xx_hal.c.

◆ HAL_GetTick()

__weak uint32_t HAL_GetTick ( void  )

Provides a tick value in millisecond.

Note
This function is declared as __weak to be overwritten in case of other implementations in user file.
Return values
tickvalue

Definition at line 323 of file stm32f4xx_hal.c.

◆ HAL_GetTickFreq()

HAL_TickFreqTypeDef HAL_GetTickFreq ( void  )

Return tick frequency.

Return values
Tickfrequency. Value of HAL_TickFreqTypeDef.

Definition at line 374 of file stm32f4xx_hal.c.

◆ HAL_GetTickPrio()

uint32_t HAL_GetTickPrio ( void  )

This function returns a tick priority.

Return values
tickpriority

Definition at line 332 of file stm32f4xx_hal.c.

◆ HAL_GetUIDw0()

uint32_t HAL_GetUIDw0 ( void  )

Returns first word of the unique device identifier (UID based on 96 bits)

Return values
Deviceidentifier

Definition at line 545 of file stm32f4xx_hal.c.

◆ HAL_GetUIDw1()

uint32_t HAL_GetUIDw1 ( void  )

Returns second word of the unique device identifier (UID based on 96 bits)

Return values
Deviceidentifier

Definition at line 554 of file stm32f4xx_hal.c.

◆ HAL_GetUIDw2()

uint32_t HAL_GetUIDw2 ( void  )

Returns third word of the unique device identifier (UID based on 96 bits)

Return values
Deviceidentifier

Definition at line 563 of file stm32f4xx_hal.c.

◆ HAL_IncTick()

__weak void HAL_IncTick ( void  )

This function is called to increment a global variable "uwTick" used as application time base.

Note
In the default implementation, this variable is incremented each 1ms in SysTick ISR.
This function is declared as __weak to be overwritten in case of other implementations in user file.
Return values
None

Definition at line 312 of file stm32f4xx_hal.c.

◆ HAL_ResumeTick()

__weak void HAL_ResumeTick ( 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_ResumeTick() is called, the SysTick interrupt will be enabled and so Tick increment is resumed.
This function is declared as __weak to be overwritten in case of other implementations in user file.
Return values
None

Definition at line 432 of file stm32f4xx_hal.c.

◆ HAL_SetTickFreq()

HAL_StatusTypeDef HAL_SetTickFreq ( HAL_TickFreqTypeDef  Freq)

Set new tick Freq.

Return values
Status

Definition at line 341 of file stm32f4xx_hal.c.

◆ HAL_SuspendTick()

__weak void HAL_SuspendTick ( 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_SuspendTick() is called, the SysTick interrupt will be disabled and so Tick increment is suspended.
This function is declared as __weak to be overwritten in case of other implementations in user file.
Return values
None

Definition at line 416 of file stm32f4xx_hal.c.