Timers and drivers....

In my driver I am trying to have a timer tick every n millisecond.

I am using generic resource manager routines: iofunc_func_init(),…

When the timer sends a pulse, the example code showes the following
segment catch it:

for(;:wink:
rcvid = MsgReceive(…)
if ( rcvid == 0 ) // it is a puls

How do I do the same thing in my resource mgr loop?
for(;:wink: {
if ( (ctp= resmgr_block(ctp) == NULL) {
error
}
resmgr_handler(ctp)
}

In other words: How can I have the helper routines catch a pulse?
(Is this a ‘notify’???)

Thanks.

You could use the function pulse_attach. This function
register a callback function when the pulse arrives with
the specific code.


Bye Sascha( sascha@bitctrl.de )

Sascha Morgenstern
BitCtrl Systems GmbH
Weißenfelser Straße 67
Germany - 04229 Leipzig
Phon. +49 341 490 670
FAX. +49 341 490 67 15
eMail: sascha@bitctrl.de
WWW: http://www.bitctrl.de


“Berkeley Process Control” <bpc@berkeleyprocess.com> schrieb im Newsbeitrag
news:9iihb3$1p5$1@inn.qnx.com

In my driver I am trying to have a timer tick every n millisecond.

I am using generic resource manager routines: iofunc_func_init(),…

When the timer sends a pulse, the example code showes the following
segment catch it:

for(;:wink:
rcvid = MsgReceive(…)
if ( rcvid == 0 ) // it is a puls

How do I do the same thing in my resource mgr loop?
for(;:wink: {
if ( (ctp= resmgr_block(ctp) == NULL) {
error
}
resmgr_handler(ctp)
}

In other words: How can I have the helper routines catch a pulse?
(Is this a ‘notify’???)

Thanks.
\