Encoder Index Interrupt Code
Forums:
Hello,
Is there an issue in the IQR_HANDLER for the encoder index pulse? https://github.com/vedderb/bldc/blob/be439a2a55ae5b1ba8cce8ad6b0da2d8046....
CH_IRQ_HANDLER(HW_ENC_EXTI_ISR_VEC) {
if (EXTI_GetITStatus(HW_ENC_EXTI_LINE) != RESET) {
encoder_reset();
// Clear the EXTI line pending bit
EXTI_ClearITPendingBit(HW_ENC_EXTI_LINE);
}
}
- Read more about Encoder Index Interrupt Code
- Log in or register to post comments