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

Function _hwtimer_cmd_print_usage

bsp/hc32/tests/test_hwtimer.c:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34static rt_bool_t cb_run = RT_FALSE;
35
36static void _hwtimer_cmd_print_usage(void)
37{
38 rt_kprintf("hwtimer_sample [option1] [option2] [option3]\n");
39 rt_kprintf(" option1: [tmra_1/2/3..] tmra uint\n");
40 rt_kprintf(" option2: [oneshot/period] timing mode set\n");
41 rt_kprintf(" option3: timeout unit:ms\n");
42 rt_kprintf(" e.g. MSH >hwtimer_sample tmra_1 period 1000\n");
43}
44
45/* 定时器超时回调函数 */
46static rt_err_t timeout_cb(rt_device_t dev, rt_size_t size)

Callers 1

hwtimer_sampleFunction · 0.85

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected