Searched refs:cap_timestamp (Results 1 – 1 of 1) sorted by relevance
389 static uint64_t cap_timestamp[3]; in mcpwm_swsync_test() local390 cap_timestamp[0] = 0; in mcpwm_swsync_test()391 cap_timestamp[1] = 0; in mcpwm_swsync_test()392 cap_timestamp[2] = 0; in mcpwm_swsync_test()401 if (log_cap && (cap_timestamp[1] == 0 || cap_timestamp[2] == 0)) { in mcpwm_swsync_test()402 if (cap_channel == MCPWM_SELECT_CAP1 && cap_timestamp[1] == 0) { in mcpwm_swsync_test()403 cap_timestamp[1] = edata->cap_value; in mcpwm_swsync_test()405 if (cap_channel == MCPWM_SELECT_CAP2 && cap_timestamp[1] != 0) { in mcpwm_swsync_test()406 cap_timestamp[2] = edata->cap_value; in mcpwm_swsync_test()454 …uint32_t delta_timestamp_us = (cap_timestamp[2] - cap_timestamp[1]) * 1000000 / rtc_clk_apb_freq_g… in mcpwm_swsync_test()