UINT32 LOS_SwtmrDelete ( UINT16  usSwTmrID  ) 

Delete a software timer.

Description:
This API is used to delete a software timer.
注意:
  • The specific timer should be created and then stopped 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_STATUS_INVALID  Invalid software timer state.
LOS_OK  The software timer is successfully deleted.
Dependency:
  • los_swtmr.h: the header file that contains the API declaration.
参见:
LOS_SwtmrCreate
自从:
Huawei LiteOS V100R001C00