2009-09-24 10:27 AM
STM3210C-EVAL
2011-05-17 04:21 AM
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? Paul2011-05-17 04:21 AM
From ARM CMSIS:
NVIC_SetPriority(CANxxx_IRQn, 2); // prio 2 NVIC_EnableIRQ (CANxxx_IRQn);