Definition at line 132 of file pedal.c. References INT1_BIT, INT1_DDR, memory_Get(), mg_u32Rpm, mg_u32TickTime, mg_u8NumMagnetsPedal, PEDAL_INT_ENABLE, and S_MEM_STRUCTRUE::u8NumMagnetsPedal. Referenced by init_InitModules(). {
mg_u8NumMagnetsPedal = memory_Get()->u8NumMagnetsPedal;
INT1_DDR &= ~(1U << INT1_BIT); /* set ext. interrupt pin as input pin */
/* setup for falling edge */
EICRA |= (1<<ISC11);
EICRA &= ~(1<<ISC10);
mg_u32TickTime = 0UL;
mg_u32Rpm = 0UL;
/* enable interrupt */
PEDAL_INT_ENABLE();
}
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() |
1.7.2