1 Reply Latest reply on Oct 14, 2020 6:20 AM by DheerajK_81

    What is the proper way to delay?


      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