Is there available sleep() fcn within SDK, if so - how to call it properly?
#include <unistd.h> // UNIX standard function definitions
while(1) {
usleep(5*1000); /*Sleep for 5 millisecond*/
lv_tick_inc(5); /*Tell LVGL that 5 milliseconds were elapsed*/
}
Do you mean the sleep is the delay function, or the chip enter the low power mode?
If it is the delay function, you can use the delay code:
void SDK_DelayAtLeastUs(uint32_t delayTime_us, uint32_t coreClock_Hz)
Or other timer.
If you want the chip enter the low power mode, you can refer to the RT SDK low power demo.
Wish it helps you!
If you still have questions about it, please kindly let me know.
Best Regards,
Kerry
Hi @Cuomo69
You are welcome!
In fact, just check which detail function you want to realize, if it is delay, just use the delay API, the SDK contains a lot of delay for your usage.
Wish it helps you!
Best Regards,
KERRY