Hi,
Has anyone got to hook rt_post_taskswitch()? I am using Keil and RTX. I want to check the timing of task swithcing (but not from the tasks themselves). Onthis forum I have found out that rt_post_taskswitch, can do this. However I include this WEAK function in my code but it is never called.
Anyone had any experiences with this, and got it to work?
thanks
Did you specify it as weak?
Note that the library may specify a function as weak. But your code shouldn't, since the goal is that the weak function in the library should be replaced with a non-weak function supplied by you.
Thanks for your reply, no its no specified as weak in my code.. here is the actual code
void rt_post_taskswitch (U32 task_id) {
FS_SetPin( LEDport , LEDpin , PIN_HIGH); FS_SetPin( LEDport , LEDpin , PIN_LOW);
}