Keil Logo


#include <rtx51tny.h>

void os_reset_interval (
  unsigned char ticks);     /* Number of Timer Ticks */

The function os_reset_interval corrects timer problems and resets the interval timer. The argument ticks sets the timer tick interval.

When the function os_wait waits for K_IVL and K_SIG simultaneously, and a signal event (K_SIG) causes os_wait to exit, then the interval timer is not adjusted and subsequent calls to os_wait may not delay correctly.

os_reset_interval corrects this possible issue and subsequent calls to os_wait operate as expected.

  • This function is part of the RTX51 Tiny Real-Time Operating System, which is included only with the PK51 Professional Developer's Kit.
Return Value


See Also


#include <rtx51tny.h>

void task_func (void) _task_ 4 {
  switch (os_wait (K_SIG | K_IVL, 100, 0))  {
    case TMO_EVENT:                    /* Timeout occurred */
                                       /* os_reset_interval not required */
    case SIG_EVENT:                    /* Signal received */
                                       /* os_reset_interval required */
         os_reset_interval (100);      /* do something with the signal */
    break; }
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.