ctimer_capture
Overview
This example shows how to use CTimer to capture the edge. In this example, CTimer timer counter uses APB clock as clock source, and CTimer monitors capture pin. The capture pin is connected to a GPIO output. The project pulls GPIO to generate rising edge. When rising edge detected on the pin, CTimer saves the timer counter value to capture register, and print in the terminal. The GPIO pin is toggled priodically, so the edge capture timestamp is shown periodically in the terminal.