Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API X_NUCLEO_IDB0XA1 X_NUCLEO_IKS01A1 mbed
Fork of HelloWorld_IKS01A1 by
misc.c File Reference
This file provides all the miscellaneous firmware functions (add-on to CMSIS functions). More...
Go to the source code of this file.
Functions | |
void | NVIC_PriorityGroupConfig (uint32_t NVIC_PriorityGroup) |
Configures the priority grouping: pre-emption priority and subpriority. | |
void | NVIC_Init (NVIC_InitTypeDef *NVIC_InitStruct) |
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct. | |
void | NVIC_SetVectorTable (uint32_t NVIC_VectTab, uint32_t Offset) |
Sets the vector table location and Offset. | |
void | NVIC_SystemLPConfig (uint8_t LowPowerMode, FunctionalState NewState) |
Selects the condition for the system to enter low power mode. | |
void | SysTick_CLKSourceConfig (uint32_t SysTick_CLKSource) |
Configures the SysTick clock source. |
Detailed Description
This file provides all the miscellaneous firmware functions (add-on to CMSIS functions).
- Version:
- V1.0.0
- Date:
- 30-September-2011
* * =================================================================== * How to configure Interrupts using driver * =================================================================== * * This section provide functions allowing to configure the NVIC interrupts (IRQ). * The Cortex-M4 exceptions are managed by CMSIS functions. * * 1. Configure the NVIC Priority Grouping using NVIC_PriorityGroupConfig() * function according to the following table. * The table below gives the allowed values of the pre-emption priority and subpriority according * to the Priority Grouping configuration performed by NVIC_PriorityGroupConfig function * ========================================================================================================================== * NVIC_PriorityGroup | NVIC_IRQChannelPreemptionPriority | NVIC_IRQChannelSubPriority | Description * ========================================================================================================================== * NVIC_PriorityGroup_0 | 0 | 0-15 | 0 bits for pre-emption priority * | | | 4 bits for subpriority * -------------------------------------------------------------------------------------------------------------------------- * NVIC_PriorityGroup_1 | 0-1 | 0-7 | 1 bits for pre-emption priority * | | | 3 bits for subpriority * -------------------------------------------------------------------------------------------------------------------------- * NVIC_PriorityGroup_2 | 0-3 | 0-3 | 2 bits for pre-emption priority * | | | 2 bits for subpriority * -------------------------------------------------------------------------------------------------------------------------- * NVIC_PriorityGroup_3 | 0-7 | 0-1 | 3 bits for pre-emption priority * | | | 1 bits for subpriority * -------------------------------------------------------------------------------------------------------------------------- * NVIC_PriorityGroup_4 | 0-15 | 0 | 4 bits for pre-emption priority * | | | 0 bits for subpriority * ========================================================================================================================== * * 2. Enable and Configure the priority of the selected IRQ Channels using NVIC_Init() * * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * * @note IRQ priority order (sorted by highest to lowest priority): * - Lowest pre-emption priority * - Lowest subpriority * - Lowest hardware priority (IRQ number) * *
- Attention:
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
© COPYRIGHT 2011 STMicroelectronics
Definition in file misc.c.
Generated on Tue Jul 12 2022 19:53:13 by
