I want to achieve a function based on input capture, first of all, it is necessary to capture both sides of the edge, the duty cycle and period of the first edge should be recorded, but it is necessary to record the value of both sides of the edge, the routine cannot capture both sides of the edge, and can not get the value of the counter