1 Reply Latest reply on Apr 6, 2018 5:14 AM by abga

    fx3 thread sleep

    Geethanjali_3054931

      Hi,

      in the fx3 slavefifo firmware,it says that thread sleep is 100millisecond when  CyU3PThreadSleep (100);

      if i call CyU3PThreadSleep (1) ,it will be one ms.how it will be in miliseconds?

       

      CyU3PThreadSleep (

              uint32_t timerTicks             /**< Number of timer ticks to sleep. */

              );

       

      how to calculate timerticks?

       

      let me know,thank you.

        • 1. Re: fx3 thread sleep
          abga

          Hi,

           

          Timer ticks are defined in the firmware library. By default it is set to 1 ms (which gives optimal and accurate results with +/- 4 % accuracy). If you want to change the timer ticks you can use CyU3POsTimerInit(). Note that if you increase the timer ticks value your OS will become slow by the same factor.

          Please refer to API Guide for further info.

           

          Thanks & Regards

          Abhinav

          1 of 1 people found this helpful