- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been using Cy_SysLib_Delay() to wait. In my effort to use more MBedOS calls, I found wait_ms. In trying to use it, I've found some sort of conflict between wait_ms and us_ticker_read. Also, I found in the wait documentation on MBedOS that the wait family of functions prevents deep sleep from occurring. An alternative would be to split up my code and then use LowPowerTimeout that would call another function to continue operation.
What is the correct way to wait? Is there a way to wait that allows the processor to enter deep sleep mode?
EDIT: I'm using MBedOS 5.12
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Whats the version of Mbed OS you are using? But to answer your question, you can make use of thread_sleep_for Mbed API. Regarding putting the processor to deep-sleep you need to use Mbed Tickless mode. For more information refer to the section MBEDOS at this link: Low Power Assistant Middleware Library 3.0.0: Low Power Assistant Middleware Library 3.0.0
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Whats the version of Mbed OS you are using? But to answer your question, you can make use of thread_sleep_for Mbed API. Regarding putting the processor to deep-sleep you need to use Mbed Tickless mode. For more information refer to the section MBEDOS at this link: Low Power Assistant Middleware Library 3.0.0: Low Power Assistant Middleware Library 3.0.0
Regards,
Dheeraj