UINT32 osSwTmrInit ( void   ) 

: Software Timers init function.

Description:
This API is used to initialize Software Timers module.
注意:
:
  • None.
参数:
参数名称 描述
  None.
返回值:
返回值 描述
LOS_ERRNO_SWTMR_MAXSIZE_INVALID  0x02000308:Invalid configured number of software timers.
LOS_ERRNO_SWTMR_NO_MEMORY  0x02000307:Insufficient memory for software timer linked list creation.
LOS_ERRNO_SWTMR_HANDLER_POOL_NO_MEM  0x0200030a:Insufficient memory allocated by membox.
LOS_ERRNO_SWTMR_QUEUE_CREATE_FAILED  0x0200030b:The software timer queue fails to be created.
LOS_ERRNO_SWTMR_TASK_CREATE_FAILED  0x0200030c:The software timer task fails to be created.
LOS_OK  0:Software Timers initialization success.
Dependency:
  • los_config.h: the header file that contains the API declaration.
参见:
None.
自从:
Huawei LiteOS V100R001C00