此函数将停止给定的时间源并重置其计时器。无法停止尚未启动或处于完成状态的时间源。
time_source_stop(id);
N/A
if (time_source_get_state(time_source) != time_source_state_stopped){ time_source_stop(time_source);}
上面的代码将在时间源尚未停止时停止。