UINT32 LOS_SwtmrStop ( UINT16  usSwTmrID  ) 

Stop a software timer.

Description:
This API is used to stop a software timer that has a specified ID.
注意:
  • The specific timer should be created and started firstly.
参数:
参数名称 描述
usSwTmrID  [IN] Software timer ID created by LOS_SwtmrCreate. The value of ID should be in [0, LOSCFG_BASE_CORE_SWTMR_LIMIT - 1].
返回值:
返回值 描述
LOS_ERRNO_SWTMR_ID_INVALID  Invalid software timer ID.
LOS_ERRNO_SWTMR_NOT_CREATED  The software timer is not created.
LOS_ERRNO_SWTMR_NOT_STARTED  The software timer is not started.
LOS_ERRNO_SWTMR_STATUS_INVALID  Invalid software timer state.
LOS_OK  The software timer is successfully stopped.
Dependency:
  • los_swtmr.h: the header file that contains the API declaration.
参见:
LOS_SwtmrStart | LOS_SwtmrCreate
自从:
Huawei LiteOS V100R001C00