<< Previous | Next >>

OSSetTickPerSec

INT16U OSSetTickPerSec( INT16U TicksPerSec );

Description

Sets the amount of ticks per second (from 1 - 2048). Ticks per second defaults to 64. If this function is used, the #define OS_TICKS_PER_SEC needs to be changed so that the time delay functions work correctly. Since this function uses integer division, the actual ticks per second may be slightly different that the desired ticks per second.

Parameters

TicksPerSec
Unsigned 16-bit integer.

Return value

The actual ticks per second set, as an unsigned 16-bit integer.

Library

UCOS2.LIB

See also

OSStart


Dynamic C Functions << Previous | Next >> rabbit.com