LOS_SwtmrStart
Software timer
UINT32
LOS_SwtmrStart
(
UINT16
usSwTmrID
)
Start a software timer.
Description:
This API is used to start a software timer that has a specified ID.
注意:
The specific timer must be created first
参数:
参数名称
描述
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 started.
Dependency:
los_swtmr.h
: the header file that contains the API declaration.
参见:
LOS_SwtmrStop
|
LOS_SwtmrCreate
自从:
Huawei LiteOS V100R001C00