I'm using an S5D9 with e2Studio and SSP 1.7.8, and have two IRQ lines connected to sensors. I have added two instances of the External IRQ Driver on r_icu to a thread which will keep track of the sensor status. I have them configured to trigger on either a rising or falling edge with filtering.
How can I detect which edge (rising or falling) caused the IRQ callback? With a breakpoint, I can see that external_irq_callback_args_t *p_args is passed into the IRQ callback, but it only seems to have a const void *p_context and uint32_t channel within.
How can the info provided to the callback be used to determine whether a rising or falling edge caused the interrupt?
In reply to Sergey Sokol:
In reply to larry_c_not_Renesas: