10 years, 4 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

I would like to know this as well.

posted by Neil Thiessen 06 Dec 2013

1 Answer

10 years, 4 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.

Accepted Answer