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

Function idle_hook

bsp/k230/drivers/utest/test_wdt.c:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47static rt_uint32_t timeout = 3;
48
49static void idle_hook(void)
50{
51 /* Feed the dog in the callback function of the idle thread */
52 if (flag_feed)
53 rt_device_control(wdg_dev, KD_DEVICE_CTRL_WDT_KEEPALIVE, NULL);
54
55 /* Do not print, otherwise the screen will display too much. */
56}
57
58static void waiting_for_timeout(int seconds)
59{

Callers

nothing calls this directly

Calls 1

rt_device_controlFunction · 0.85

Tested by

no test coverage detected