void timer_LockTicks ( void   )

Copies the time flags in mg_u8Ticks to mg_u8TicksOut and resets all flags in mg_u8Ticks. Sinc this process must not be interrupted, all interrupts are temporarily disabled.

Returns:
void

Definition at line 212 of file timer.c.

References mg_u8Ticks, mg_u8TicksOut, and NO_TICK.

Referenced by main().

{
  cli();
  mg_u8TicksOut = mg_u8Ticks;
  mg_u8Ticks    = NO_TICK;
  sei();
}

Here is the caller graph for this function: