@CHIP-RTOS C Library - RTOS API
Get system's Real-Time Interrupt (RTI) count.
unsigned long RTX_Get_RTI_Ticks (void);
- Real-Time interrupt count
- This 32 bit up count rolls over to zero each 2**32
which is approximately each 1193 hours of continuous operation
(= 49.71 days) when operating at 1 kHz
A faster way to access the system's RTI up counter is to
read the long word referenced by the
This alternate approach using inline code should be considered,
especially when system time is required from within
time-critical code such as Interrupt Service Routines.
Keep in mind that you must momentarily mask interrupts
around the 32 bit read from this location in order to assure
consistent data. Also do not forget to call
once at the start of your program so that this pointer
will be initialized.
- For SC1x program's, this function is mapped to
the RTX_GetTickCount API,
which is equivalent for the fixed 1 kHz RTI rate. This allows
common source code to be used for the two system types.
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
for more details.
- RTX API Overview
Supported since or modified in @CHIP-RTOS version
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document