Think this is an easy one but it's stumped me so far... I am setting up the USB Overcurrent interrupt and can't find any fully implemented examples.
The interrupt is set to both edges as I want to know when the over current state is first set and later hopefully cleared. I can obviously read the state of the input pin, but I sort of feel I should be able to pass the state as an arg to the handler (via xcpt_t handler). Is that possible and, if so, how?