examples/ftm-input: use ftm to read period between rising and falling edge