UINT32 timer_GetSystemTime ( void   ) [inline]

When calling this function it could be that it is interrupted by the timer ISR. Hence, we need to disable interrupts for a short moment to buffer the mg_u32SystemTime value in another UINT32 variable.

Returns:
Value of mg_u32Rpm
Return values:
UINT32

Definition at line 233 of file timer.c.

References mg_u32SystemTime.

Referenced by ISR(), leds_ShowCurrent(), leds_ShowVoltage(), main(), and pedal_GetTimeout().

{
  UINT32 u32Ret;
  cli();
  u32Ret = mg_u32SystemTime;
  sei();
  return (u32Ret);
}

Here is the caller graph for this function: