UINT32 pedal_GetRpm ( void   )

When calling this function it could be interrupted by the pedal 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 205 of file pedal.c.

References mg_u32Rpm.

Referenced by main().

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

Here is the caller graph for this function: