undefined reference to `_legacy_sleep'


kk <pinganddu90@...>
 

Hi all

When I use the "task_sleep" function, I include the file legacy.h, but the compiler tells:
    undefined reference to `_legacy_sleep'
I search the source code in zephyr, its definition in ./kernel/legacy_timer.c, how can I solve this problem?

Thanks

Join devel@lists.zephyrproject.org to automatically receive all group messages.