Hey ed1k,
Why i need this? Well, as i’ve told before in other post, i’m porting
some
programs from the old DOS that use this feature.Usualy DOS programs used INT 0x1c or INT 0x08 to take control every 55ms
(handle IRQ 0 or to be in
long train of handlers). But you don’t need use it anymore in QNX. You
have much more safe timers.
The timers in QNX are very safe to do this kind of work right? Every
time-interval i need to gather some hardware information and make some
decisions… i CAN thrust in the timers right? That’s what i see until now.
A little thing… In my program i try to configure the timer to repeat every,
for example, 100ms, my osciloscope shows me that i’m getting an accuracy of
80 ms, when i try to use 1ms is see that this accuracy is 0.8ms.
I’ve set the thread priority to 63, just for minimize the interferece with
other programs, and do some tests using and QNX build image too (As is
explain in Programmers Guide Manual) and again i get this 20% difference…
What makes this 20% difference?
What i want to do now is to test the InterruptAttach routines. I’m trying to
simulate an Paralel Interrupt to see if my program is working well, but it’s
more complicated then just send a 5v signal to the ACK pin of the port.
So, i just want to see if my InterruptAttach code is working, how can i
simulate an Interrupt ?
I’ve done a lot of sucessful tests using timer (Thanks to Rob again),
and
now i want the timer to generate an interrupt for my tests with
interrupt
routines.You can use messages and pulses in QNX instead of users’ vectors and soft
INT in DOS. Ideology of
DOS and QNX is quite different. You’re able to use all your DOS background
but don’t copy
everything from one OS to another.
Yes… That’s what i’m trying to do… Porting not just the code from DOS to
QNX, but adapting the code to work better!
Thanx
Leandro