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.
Rtos_Timer
Hi
I have a RtosTimer member in a class like this:
RtosTimer *timer;
And my question is, how do i set a rtos timer inside the class and call and call a class funtion?
i tried this
timer = new RtosTimer(Class_Name::Class_Funtion, osTimerPeriodic); // i also tried this timer = new RtosTimer(&Class_Name::Class_Funtion, osTimerPeriodic);
can anyone help?
Thanks
1 Answer
11 years, 2 months ago.
I don't think you can, there doesn't seem to be an option to call a member function of a class. Also because it isn't the C++ shell but the underlying standard CMSIS RTOS code that makes the call it won't be as easy to hack it in.
I would like to know this as well.
posted by Neil Thiessen 06 Dec 2013