# OS_SetTick

## C Specification

      #include <nitro/os.h>

      void OS_SetTick( OSTick count );

## Arguments

count | The tick value to be set

## Return Values

None.

## Description

Sets a tick value Ticks must be initialized with `OS_InitTick()` before calling this function.
This function sets the lower 16 bits as the timer count value portion of the tick; it sets the upper 48 bits as the timer's interrupt count counter value (`u64`).
The alarm system uses the tick value to calculate the timing at which to call the alarm handler. Therefore, the alarms may not function properly if proper consideration is not given when changing the tick value.

## See Also

`OS_InitTick`, `OS_GetTick`

## Revision History

02/25/2004 Changed systemClock to tick
02/23/2004 System clock counter from u32 to u64
02/04/2004 Initial Version