I would like to make a timer to check the GPIO status.
The current code is like below:
I already checked that timer function is worked by implant the specific event into the charge_event_handler as below:
charge_event_handler(TYPE_C,GPIOTE_CONFIG_POLARITY_LoToHi );
But not sure how to make it switch from different event.
Or there is any smart way to make it?