git clone https://github.com/alibaba/AliOS-Things.git
cd AliOS-Things
aos make helloworld@linuxhost
./out/helloworld@linuxhost/binary/helloworld@linuxhost.elf
效果
可以看见 app_delayed_action 在1秒时启动,每5秒触发一次。
$ ./out/helloworld@linuxhost/binary/helloworld@linuxhost.elf
[ 1.000]<V> AOS [app_delayed_action#9] : app_delayed_action:9 app
[ 6.000]<V> AOS [app_delayed_action#9] : app_delayed_action:9 app
[ 11.000]<V> AOS [app_delayed_action#9] : app_delayed_action:9 app
[ 16.000]<V> AOS [app_delayed_action#9] : app_delayed_action:9 app