/* Configures the priority grouping: pre-emption priority and subpriority.  */
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
/* Configures the priority grouping: pre-emption priority and subpriority.  */
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
{
    SCB->AIRCR = AIRCR_VECTKEY_MASK | NVIC_PriorityGroup;
}