I’m trying to make a “stopwatch” based on USBizi. I want to know when a pin change happend very accurately. That’s why I decided to use timer capture pins, which can get the timer value in the moment of that pin change. I’d like to use RLP to handle this task, but I wasn’t able to find enough information how to do that.
Which timers are used by .NETMF? Is there any additional timer used by GHI?
What is exactly the first parameter Irq_index in Interrupt.Install()? Is it a number from 0 to 31? I’ve read somewhere here in the forum that somebody used the hex mask. Let’s say TIMER1 has VIC channel 5 and hex mask index is 0x20. What is correct?
Is it enough to call Interrupt.Install() and Interrupt.Enable() at the RLP side? Is there anything else to call?
What must be included in the RLP_CALLBACK_FPN ISR? Am I responsible for clearing the interrupt flag or is it done by GHI?
Is it possible (and smart) to call RLP->PostManagedEvent() in the ISR? How long might the PostManagedEvent take? Is the function implemented like a non blocking linked list (using atomic operations) or is it needed to call GlobalInterruptDisable to avoid some synchronization problems?
It would be very helpful to have somewhere in the documentation or samples a piece of code, where Interrupt.Install() is used…
Btw, thanks GHI guys for their great products…