Question
Where is the NVIC_InitStructure?
Posted on June 15, 2013 at 22:18
I am trying to configure the NVIC for the first time.
In looking online for help, most project reference these functions: NVIC_InitTypeDef NVIC_InitStructure; /* Enable the TIM2 gloabal Interrupt */ NVIC_InitStructure.NVIC_IRQChannel = TIM2_IRQn; NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0; NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1; NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; NVIC_Init(&NVIC_InitStructure); I cannot find the library with this structure and methods? Is it available on the ST site? Can someone point this out please. Thanks.