UM1940
uint8_t MPU_Region_InitTypeDef::IsBufferable
Specifies the bufferable status of the protected region. This parameter can be a value
of
CORTEX_MPU_Access_Bufferable
9.2
CORTEX Firmware driver API description
9.2.1
How to use this driver
How to configure Interrupts using CORTEX HAL driver
This section provides functions allowing to configure the NVIC interrupts (IRQ). The
Cortex-M3 exceptions are managed by CMSIS functions.
1.
Configure the NVIC Priority Grouping using HAL_NVIC_SetPriorityGrouping() function
according to the following table.
2.
Configure the priority of the selected IRQ Channels using HAL_NVIC_SetPriority().
3.
Enable the selected IRQ Channels using HAL_NVIC_EnableIRQ().
4.
please refer to programming manual for details in how to configure priority. When the
NVIC_PRIORITYGROUP_0 is selected, IRQ preemption is no more possible. The
pending IRQ priority will be managed only by the sub priority. IRQ priority order
(sorted by highest to lowest priority): Lowest preemption priorityLowest sub
priorityLowest hardware priority (IRQ number)
How to configure Systick using CORTEX HAL driver
Setup SysTick Timer for time base.
The HAL_SYSTICK_Config() function calls the SysTick_Config() function which is a
CMSIS function that:
You can change the SysTick Clock source to be HCLK_Div8 by calling the macro
__HAL_CORTEX_SYSTICKCLK_CONFIG(SYSTICK_CLKSOURCE_HCLK_DIV8)
just after the HAL_SYSTICK_Config() function call. The
__HAL_CORTEX_SYSTICKCLK_CONFIG() macro is defined inside the
stm32f2xx_hal_cortex.h file.
You can change the SysTick IRQ priority by calling the
HAL_NVIC_SetPriority(SysTick_IRQn,...) function just after the
HAL_SYSTICK_Config() function call. The HAL_NVIC_SetPriority() call the
NVIC_SetPriority() function which is a CMSIS function.
To adjust the SysTick time base, use the following formula: Reload Value = SysTick
Counter Clock (Hz) x Desired Time base (s)
9.2.2
Initialization and de-initialization functions
This section provides the CORTEX HAL driver functions allowing to configure Interrupts
Systick functionalities
Configures the SysTick Reload register with value passed as function parameter.
Configures the SysTick IRQ priority to the lowest value 0x0F.
Resets the SysTick Counter register.
Configures the SysTick Counter clock source to be Core Clock Source (HCLK).
Enables the SysTick Interrupt.
Starts the SysTick Counter.
Reload Value is the parameter to be passed for HAL_SYSTICK_Config() function
Reload Value should not exceed 0xFFFFFF
DocID028236 Rev 2
HAL CORTEX Generic Driver
123/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers