PxTickDefine_Hnd()

Define a PXROS tick.

APPLIES TO

1.0.0

SYNOPSIS
void PxTickDefine_Hnd (void);
ERROR CODES

PXERR_TIMESLOTLIST_OVERFLOW

The system could not execute delay jobs due to exceptional interrupt load

DESCRIPTION

Each time PxTickDefine_Hnd is called, PXROS internal clock is incremented. After interrupt and pending handler processing, PXROS checks whether any delay job is associated with the current time and activates the corresponding delay handlers.

PxTickDefine_Hnd is a handler service. There is no corresponding task service.

Usually, a real time application is equipped with system clock hardware to provide a clock interrupt at periodic intervals. If so, PxTicksDefine_Hnd is usually called in the corresponding interrupt service routine.

IMPLEMENTATION GUIDELINES
Before call
  • No checks necessary.

After call
  • No checks necessary.

Best Practice
  • This function should be called from handlers only. (V)

SEE ALSO
USAGE
#include "pxdef.h"

PxTickDefine_Hnd();