I finally got it working. The problem stemmed from the default interrupts that were enabled (for IRQs 4,5,7).
I used a level of 3 and a priority of 1 and never saw the interrupt, nor was it ever being set in the IACK register.
So, I changed it to L7 P1 and it worked. Now I need a quick tutorial on interrupt level/priority management
so that I can better understand how these correspond so that I can get the entire system running properly.
Does anyone have a cheat-sheet for laying out interrupts in a fairly busy system design?
Another "issue" with the provided code is that, by default, the "stationary" for the M5211DEMO board do not
include the function m5xxx_set_handler. I did find what it was doing in another directory that was installed,
but it was doing the same thing that I was doing in my code, which was assigning the interrupt vector in RAM to
the handler address.
When I change my PIT0 level to less than 7, it never runs, however, I am able to get my SW2 Interrupt (IRQ7)
to run. If I change my PIT0 level to 7, it runs fine, however, if I press the SW2, it kills the PIT0. The code is
not directly affecting either of these, as I am clearing the MCF_EPORT_EPFR only in the SW2 interrupt
handler, and I'm only modifying the PIF bit in the PIT0 handler. There is an issue of some sort between the
interrupt levels and how they interact that I am missing. I'm sure that more RTFM is in order, but I'd be
appreciative if someone could offer some more immediate gratification through an example. I'll happily post
a completed example once I figure it out for the M5211DEMO board.
Take Care.
Rob!