
Used by your application to obtain the current value of the counter to keep track of the number of clock ticks. Pointer to the TCB of the task to resume. Os.h/os_time.c Prototype # void OSTimeDlyResume (OS_TCB *p_tcb , Note that you cannot call this function to resume a task that is waiting for an event with timeout. Resumes a task that has been delayed through a call to either OSTimeDly() or OSTimeDlyHMSM(). The actual delay is rounded to the nearest tick.Īlthough this function allows you to delay a task for many hours, it is not recommended to put a task to sleep for that long. In this case, the delay would be set to 0. For example, you cannot do a 10 mS delay if the ticker interrupts every 100 mS. The resolution of milliseconds depends on the tick rate. OS_OPT_TIME_HMSM_NON_STRICT Allows any value of *** OS_OPT_TIME_HMSM_STRICT Strictly allows only OS_OPT_TIME_PERIODIC Indicates that the delay specifies the periodic value that the current count tick (retrieved with OSTimeGet()) must reach before the task will be resumed. *** OS_OPT_TIME_DLY Specifies a relative time from the current time returned by OSTimeGet(). Specifies time delay bit-field options logically OR'd default options marked with *** : is 999 if the tick rate is 1000 Hz or less otherwise, a higher value would overflow a 32-bit unsigned counter). Specifies the number of hours that the task will be delayed (max. Os.h/os_time.c Prototype # void OSTimeDlyHMSM (CPU_INT16U hours , This call allows you to specify the delay time in HOURS, MINUTES, SECONDS, and MILLISECONDS instead of ticks. OS_OPT_TIME_PERIODIC Indicates that 'dly' specifies the periodic value that current tick count (retrieved with OSTimeGet()) must reach before the task will be resumed.ĭelay execution of the currently running task until some time expires. OS_OPT_TIME_TIMEOUT Same as OS_OPT_TIME_DLY. OS_OPT_TIME_DLY Specifies a relative time from the current count tick retrieved with OSTimeGet(). Specifies whether 'dly' represents absolute or relative time default option is OS_OPT_TIME_DLY: Note that setting this to 0 means that no delay will be applied to the task.ĭepending on the option argument, the task will wake up when OSTickCtr reaches: OS_OPT_TIME_DLY OSTimeGet ( ) + dly Value in 'clock ticks' that the task for which will either delay, the target matches the value of the tick counter ( OSTickCtr). Os.h/os_time.c Prototype # void OSTimeDly (OS_TICK dly ,

If the specified delay is greater than 0, this results in a context switch. No delay will result if the specified delay is 0. Framework for creating high-fidelity digital humans in. This directly equates to delaying the current task for some time to expire. The worlds most advanced real-time 3D creation tool for photoreal visuals and immersive experiences. OSTimeDly() # Description #ĭelays the execution of the currently running task until the specified number of system ticks expires. Pointer to the variable that will receive one of the following error code(s) from this function: Os.h/os_time.c Prototype # OS_RATE_HZ OSTimeTickRateHzGet (RTOS_ERR *p_err ) Arguments #
