mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-09 22:45:11 +00:00
ostest/hrtimer: sync hrtimer test with latest updates
Synchronize the hrtimer ostest with the latest hrtimer changes. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
parent
5595a01fcd
commit
df30f84f33
1 changed files with 2 additions and 1 deletions
|
|
@ -211,11 +211,12 @@ void hrtimer_test(void)
|
|||
|
||||
/* Initialize the high-resolution timer */
|
||||
|
||||
hrtimer_init(&hrtimer_test.timer, test_hrtimer_callback);
|
||||
hrtimer_init(&hrtimer_test.timer);
|
||||
|
||||
/* Start the timer with 500ms relative timeout */
|
||||
|
||||
ret = hrtimer_start(&hrtimer_test.timer,
|
||||
test_hrtimer_callback,
|
||||
hrtimer_test.period,
|
||||
HRTIMER_MODE_REL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue