Followup to question 1:
With some guesswork I got this for init:
#define SLAVE_FLEXIO_SPI_BASEADDR FLEXIO1
#define FLEXIO_SPI_PICKUP_PIN 6U
const flexio_gpio_config_t config =
{
kFLEXIO_DigitalInput,
0U,
kFLEXIO_FlagRisingEdgeEnable | kFLEXIO_InputInterruptEnable,
};
FLEXIO_SetPinConfig(SLAVE_FLEXIO_SPI_BASEADDR, FLEXIO_SPI_PICKUP_PIN, &config); //sets up pin and interrupts
And for the interrupt I did
void FLEXIO1_IRQHandler(){
// ??? FLEXIO_ClearPinsInterruptFlags(....); ???
// do my stuff here
SDK_ISR_EXIT_BARRIER;
}
Now, When I trigger a rising edge on the flexio pin, the interrupts comes now. But even if i do not touch the input pin anymore, the interrupt keeps coming. I assume there is a routinne to reset the interrupt flag somehow, but I could not find it. Has anyone a correct way to handle such an interrupt?