MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / NVIC_Configuration

Function NVIC_Configuration

bsp/efm32/board.c:88–104  ·  view source on GitHub ↗

/ * @brief * Configure the address of vector table * * @details * * @note * ******************************************************************************/

Source from the content-addressed store, hash-verified

86 *
87 ******************************************************************************/
88static 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

Callers 1

rt_hw_board_initFunction · 0.70

Calls 3

NVIC_SetVectorTableFunction · 0.70
NVIC_SetPriorityGroupingFunction · 0.50
__set_BASEPRIFunction · 0.50

Tested by

no test coverage detected