how to fire a funtion

Status
Not open for further replies.

piedos

Newbie level 4
Joined
Sep 11, 2006
Messages
7
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,313
Hello,

I need a program like

fire(ret_z=any_function(int x, char * y), 200);

which calls any_function after 200 milliseconds by timer interrupt. ayn_function can be printf, my_function, etc.

return_z and inputs x and y (which may increase according to function to be called) are global variables.

How can I build this function

I couldn't find open source of printf funtion. This function can handle varying type/length input parameters. I think open source of printf may help to solve problem.

Thanks
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…