/* Start capturing data with the specified capture register.  */
void am_hal_stimer_capture_stop(uint32_t ui32CaptureNum)
/* Start capturing data with the specified capture register.  */
void am_hal_stimer_capture_stop(uint32_t ui32CaptureNum)
{
    AM_REG(CTIMER, CAPTURE_CONTROL) &=
        ~(AM_REG_CTIMER_CAPTURE_CONTROL_CAPTURE_A_M <<
            ((AM_REG_CTIMER_CAPTURE_CONTROL_CAPTURE_B_S -
              AM_REG_CTIMER_CAPTURE_CONTROL_CAPTURE_A_S) * ui32CaptureNum));
}