Skip to main content
plee1
Associate II
September 24, 2009
Question

STM3210C-EVAL

  • September 24, 2009
  • 2 replies
  • 638 views
Posted on September 24, 2009 at 19:27

STM3210C-EVAL

    This topic has been closed for replies.

    2 replies

    plee1
    plee1Author
    Associate II
    May 17, 2011
    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
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:21

    From ARM CMSIS:

    NVIC_SetPriority(CANxxx_IRQn, 2); // prio 2

    NVIC_EnableIRQ (CANxxx_IRQn);