cancel
Showing results for 
Search instead for 
Did you mean: 

STM3210C-EVAL

plee1
Associate II
Posted on September 24, 2009 at 19:27

STM3210C-EVAL

2 REPLIES 2
plee1
Associate II
Posted on May 17, 2011 at 13:21

Hello,

I was wondering how do you setup both CANs on the STM3210C-EVAL? So far I got upto setting the APB1, APB2, AFIO and GPIO but I am unsure how to setup the interrupt. How would I use the NVIC register and how do I map interrupt function to the interrupt priority register? For the non-connectivity line processor, the coding was a bit easier as the functions were provided and low-level setup were included. Would they be something similar for the connectivity line in the future?

Paul

tomas23
Associate II
Posted on May 17, 2011 at 13:21

From ARM CMSIS:

NVIC_SetPriority(CANxxx_IRQn, 2); // prio 2

NVIC_EnableIRQ (CANxxx_IRQn);