timed_gpio: backport from CAF