Hello,
for teaching purposes, I have a very simple driver built with RTDM to
catch interrupts generated on the parallel port via a pulse generator.
On receipt of a command passed by ioctl, the driver measures the time
interval between two interrupts and stores the result (in fact, the sum
of n time intervals, n being passed as parameter of ioctl). The result
is returned to the user by a read command.
If I call ioctl immediatly after the open command, the machine freezes
and only the reset button is effective. If I insert a print command
between open and ioctl, everything works fine.
I use Xenomai 2.4.9.1 and Linux 2.6.29.5. The processor is a Pentium 4.
I attach the sources of the driver and the user application.
Any hint ? TIA
Francois