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

Function NVIC_SetVectorTable

bsp/efm32/board.c:68–77  ·  view source on GitHub ↗

Private macro -------------------------------------------------------------*/ Private variables ---------------------------------------------------------*/ Private function prototypes -----------------------------------------------*/ Private functions ---------------------------------------------------------*/ / * @brief * Set the allocation and offset of the vector table * * @details * * @

Source from the content-addressed store, hash-verified

66 * The vector table offset
67 ******************************************************************************/
68static void NVIC_SetVectorTable(
69 rt_uint32_t NVIC_VectTab,
70 rt_uint32_t Offset)
71{
72 /* Check the parameters */
73 RT_ASSERT(IS_NVIC_VECTTAB(NVIC_VectTab));
74 RT_ASSERT(IS_NVIC_OFFSET(Offset));
75
76 SCB->VTOR = NVIC_VectTab | (Offset & (rt_uint32_t)0x1FFFFF80);
77}
78
79/***************************************************************************//**
80 * @brief

Callers 1

NVIC_ConfigurationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected