cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the NVIC_InitStructure?

baumgartner
Associate
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.

1 REPLY 1
Posted on June 15, 2013 at 23:11

For what part, and with which tool chain?

STM32F4xx_DSP_StdPeriph_Lib_V1.1.0\Libraries\STM32F4xx_StdPeriph_Driver\src\misc.c

STM32F4xx_DSP_StdPeriph_Lib_V1.1.0\Libraries\STM32F4xx_StdPeriph_Driver\inc\misc.h

For major tool chains examine the project templates which use path to the libraries, and have top level include files

STM32F4xx_DSP_StdPeriph_Lib_V1.1.0\Project\STM32F4xx_StdPeriph_Templates\MDK-ARM\Project.uvproj

STM32F4xx_DSP_StdPeriph_Lib_V1.1.0\Project\STM32F4xx_StdPeriph_Templates\EWARM\Project.eww

STM32F4xx_DSP_StdPeriph_Lib_V1.1.0\Project\STM32F4xx_StdPeriph_Templates\stm32f4xx_conf.h

For the firmware Google your part#, go to Design Resources tab, Related Tools and Software

http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1577/LN11/PF252136

http://www.st.com/web/en/catalog/tools/PF257901

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..