STM32L443xx HAL User Manual
|
Initialization and de-initialization functions. More...
Functions | |
HAL_StatusTypeDef | HAL_Init (void) |
Configure the Flash prefetch, the Instruction and Data caches, the time base source, NVIC and any required global low level hardware by calling the HAL_MspInit() callback function to be optionally defined in user file stm32l4xx_hal_msp.c. | |
HAL_StatusTypeDef | HAL_DeInit (void) |
De-initialize common part of the HAL and stop the source of time base. | |
__weak void | HAL_MspInit (void) |
Initialize the MSP. | |
__weak void | HAL_MspDeInit (void) |
DeInitialize the MSP. | |
__weak HAL_StatusTypeDef | HAL_InitTick (uint32_t TickPriority) |
This function configures the source of the time base: The time source is configured to have 1ms time base with a dedicated Tick interrupt priority. |
Initialization and de-initialization functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Initialize the Flash interface, the NVIC allocation and initial time base clock configuration. (+) De-initialize common part of the HAL. (+) Configure the time base source to have 1ms time base with a dedicated Tick interrupt priority. (++) SysTick timer is used by default as source of time base, but user can eventually implement his proper time base source (a general purpose timer for example or other time source), keeping in mind that Time base duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and handled in milliseconds basis. (++) Time base configuration function (HAL_InitTick ()) is called automatically at the beginning of the program after reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig(). (++) Source of time base is configured to generate interrupts at regular time intervals. Care must be taken if HAL_Delay() is called from a peripheral ISR process, the Tick interrupt line must have higher priority (numerically lower) than the peripheral interrupt. Otherwise the caller ISR process will be blocked. (++) functions affecting time base configurations are declared as __weak to make override possible in case of other implementations in user file.
HAL_StatusTypeDef HAL_DeInit | ( | void | ) |
De-initialize common part of the HAL and stop the source of time base.
HAL | status |
Definition at line 196 of file stm32l4xx_hal.c.
References __HAL_RCC_AHB1_FORCE_RESET, __HAL_RCC_AHB1_RELEASE_RESET, __HAL_RCC_AHB2_FORCE_RESET, __HAL_RCC_AHB2_RELEASE_RESET, __HAL_RCC_AHB3_FORCE_RESET, __HAL_RCC_AHB3_RELEASE_RESET, __HAL_RCC_APB1_FORCE_RESET, __HAL_RCC_APB1_RELEASE_RESET, __HAL_RCC_APB2_FORCE_RESET, __HAL_RCC_APB2_RELEASE_RESET, and HAL_MspDeInit().
HAL_StatusTypeDef HAL_Init | ( | void | ) |
Configure the Flash prefetch, the Instruction and Data caches, the time base source, NVIC and any required global low level hardware by calling the HAL_MspInit() callback function to be optionally defined in user file stm32l4xx_hal_msp.c.
HAL | status |
Definition at line 152 of file stm32l4xx_hal.c.
References __HAL_FLASH_DATA_CACHE_DISABLE, __HAL_FLASH_INSTRUCTION_CACHE_DISABLE, __HAL_FLASH_PREFETCH_BUFFER_ENABLE, HAL_InitTick(), HAL_MspInit(), HAL_NVIC_SetPriorityGrouping(), NVIC_PRIORITYGROUP_4, and TICK_INT_PRIORITY.
HAL_StatusTypeDef HAL_InitTick | ( | uint32_t | TickPriority | ) |
This function configures the source of the time base: The time source is configured to have 1ms time base with a dedicated Tick interrupt priority.
TickPriority | Tick interrupt priority. |
HAL | status |
Definition at line 259 of file stm32l4xx_hal.c.
References HAL_NVIC_SetPriority(), HAL_SYSTICK_Config(), uwTickFreq, and uwTickPrio.
Referenced by HAL_Init(), HAL_RCC_ClockConfig(), HAL_RCC_DeInit(), HAL_RCC_OscConfig(), and HAL_SetTickFreq().
void HAL_MspDeInit | ( | void | ) |
DeInitialize the MSP.
None |
Definition at line 236 of file stm32l4xx_hal.c.
Referenced by HAL_DeInit().
void HAL_MspInit | ( | void | ) |
Initialize the MSP.
None |
Definition at line 225 of file stm32l4xx_hal.c.
Referenced by HAL_Init().