/ * @brief * Configure the address of vector table * * @details * * @note * ******************************************************************************/
| 86 | * |
| 87 | ******************************************************************************/ |
| 88 | static void NVIC_Configuration(void) |
| 89 | { |
| 90 | #ifdef VECT_TAB_RAM |
| 91 | /* Set the vector table allocated at 0x20000000 */ |
| 92 | NVIC_SetVectorTable(RAM_MEM_BASE, 0x0); |
| 93 | #else /* VECT_TAB_FLASH */ |
| 94 | /* Set the vector table allocated at 0x00000000 */ |
| 95 | NVIC_SetVectorTable(FLASH_MEM_BASE, 0x0); |
| 96 | #endif |
| 97 | |
| 98 | /* Set NVIC Preemption Priority Bits: 0 bit for pre-emption, 4 bits for |
| 99 | subpriority */ |
| 100 | NVIC_SetPriorityGrouping(0x7UL); |
| 101 | |
| 102 | /* Set Base Priority Mask Register */ |
| 103 | __set_BASEPRI(EFM32_BASE_PRI_DEFAULT); |
| 104 | } |
| 105 | |
| 106 | /***************************************************************************//** |
| 107 | * @brief |
no test coverage detected