| 34 | static rt_bool_t cb_run = RT_FALSE; |
| 35 | |
| 36 | static 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 | /* 定时器超时回调函数 */ |
| 46 | static rt_err_t timeout_cb(rt_device_t dev, rt_size_t size) |
no test coverage detected