trig interrupt on both edges and check for GPIO value also when timer expires (and restart timer if level still high)
trig interrupt on both edges and check for GPIO value also when timer expires (and restart timer if level still high)

jjaas/sparkle