This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What is range of the ticks in the os_wait()

hi:

I want to know the range of the ticks in the os_wait() when the event which is timeout or interval is being waited for. for example: os_wait(K_TMO,ticks,0); os_wait(K_IVL,ticks,0);

what is the max number and the min number of the ticks . I guess the range is 0-255. If the ticks were out of this range , the kernel would how to deal with it?

Best regards!

  • In the absence of any other specifically-stated restriction, I guess it's fair to assume that the maximum value of the parameter is the maximum value for its data type.

    But, if you want to be sure, you should contact Keil Support.

    It is really rather naughty of Keil not to state this explicitly, IMO!

    "If the ticks were out of this range , the kernel would how to deal with it?"

    IF the value is limited only by the range of its data type, then the Kernel can never get to see any value outside that range!