Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 2 months ago.
Problem with CAN::attach()
Hi guys,
According to the doc of CAN API, I can use attach (void(*fptr)(void), IrqType type=RxIrq) or attach (T *tptr, void(T::*mptr)(void), IrqType type=RxIrq) to attach a function to different types of CAN interrupt. But when I compile it, compiler returns error 304, even after I update the mbed library in my program. Following is the line in my code:
include the mbed library with this snippet
can2.attach(rec, RxIrq);
What's wrong with my code?
Thanks!