UINT32 speed_GetDistance ( void   )

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

Returns:
Value of mg_u32Distance
Return values:
UINT32

Definition at line 223 of file speed.c.

References mg_u32Distance.

Referenced by main().

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

Here is the caller graph for this function: