MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / clock_cpu_settimeout

Function clock_cpu_settimeout

components/drivers/cputime/cputime.c:55–62  ·  view source on GitHub ↗

* The clock_cpu_settimeout() fucntion set timeout time and timeout callback function * The timeout callback function will be called when the timeout time is reached * * @param tick the Timeout tick * @param timeout the Timeout function * @param parameter the Parameters of timeout function * */

Source from the content-addressed store, hash-verified

53 *
54 */
55int clock_cpu_settimeout(uint64_t tick, void (*timeout)(void *param), void *param)
56{
57 if (_cputime_ops)
58 return _cputime_ops->cputime_settimeout(tick, timeout, param);
59
60 rt_set_errno(ENOSYS);
61 return 0;
62}
63
64int clock_cpu_issettimeout(void)
65{

Callers 2

_set_next_timeoutFunction · 0.85

Calls 1

rt_set_errnoFunction · 0.85

Tested by

no test coverage detected