UINT32 speed_GetRpm ( void   )

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

Returns:
Value of mg_u32Rpm
Return values:
UINT32

Definition at line 201 of file speed.c.

References mg_u32Rpm.

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