Mail Archives: djgpp/2001/01/15/12:21:31
paul DOT crone AT thomson-csf DOT no wrote:
> I have a problem that I've been trying to resolve for some time. This is a
> test harness program to test a timer routine using the Allegro timer.c,
> irq.c and irqwrap.S files. I want to use them in my program.
> The program runs and apparently installs the timer and irq's. My
> problem is that I don't get any interrupt 'timerRCU' callbacks and
> so the printf statement never prints.
Please be aware that you shouldn't be calling any other functions from
an interrupt handler. Certainly not a complicated one like printf().
I didn't really look at all the code, but there's another possible
problem that comes to mind. You seem to be talking about *two* timer
packages (yours, and the one from allegro) being active at the same
time. Such a setup generally won't work, unless you make sure you use
two independent timer tick IRQ sources, and properly chain interrupt
handlers, where appropriate.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -