NVIC Exported Functions
- group x3e_NVIC_Exported_Functions
-
Variables
-
void (*NVIC_Init)(NVIC_InitTypeDef *NVIC_InitStruct)
-
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.
Example usage
void i2c0_init(void) { //add code here. RamVectorTableUpdate(I2C0_VECTORn, (IRQ_Fun)I2C0_Handler); NVIC_InitTypeDef NVIC_InitStruct; NVIC_InitStruct.NVIC_IRQChannel = I2C0_IRQn; NVIC_InitStruct.NVIC_IRQChannelPriority = 3; NVIC_InitStruct.NVIC_IRQChannelCmd = ENABLE; NVIC_Init(&NVIC_InitStruct); }
- Param NVIC_InitStruct:
-
[in] Pointer to a NVIC_InitTypeDef structure that contains the configuration information for the specified NVIC peripheral.
-
void (*NVIC_Init)(NVIC_InitTypeDef *NVIC_InitStruct)