Hi there,
I have the following setup:
I'm using two independent timers for a cascaded control system (CPU Timer0 for fast control loop and CPU Timer1 for slow control loop) and I'm using a Begin Hook function ('myBeginFxn') for the Hwi module. Out of my investigations, it follows that 'myBeginFxn' will be called just before both timer interrupt service routines.
My question now is: Is it possible to assign the 'myBeginFxn' Hook function only to the fast timer ISR? If not, is it possible inside the 'myBeginFxn Hook function to find out which timer interrupt has invoked the Hook function?
Thanks
Simon