[bsp][stm32][driver][drv_pulse_encoder.c] remove pulse_encoder->parent.user_data
@@ -22,6 +22,7 @@ extern "C" {
#define PULSE_ENCODER1_CONFIG \
{ \
.tim_handler.Instance = TIM1, \
+ .encoder_irqn = TIM1_UP_TIM10_IRQn, \
.name = "pulse1" \
}
#endif /* PULSE_ENCODER1_CONFIG */
@@ -32,6 +33,7 @@ extern "C" {
#define PULSE_ENCODER2_CONFIG \
{ \
.tim_handler.Instance = TIM2, \
+ .encoder_irqn = TIM2_IRQn, \
.name = "pulse2" \
}
#endif /* PULSE_ENCODER2_CONFIG */
@@ -42,6 +44,7 @@ extern "C" {
#define PULSE_ENCODER3_CONFIG \
{ \
.tim_handler.Instance = TIM3, \
+ .encoder_irqn = TIM3_IRQn, \
.name = "pulse3" \
}
#endif /* PULSE_ENCODER3_CONFIG */
@@ -52,6 +55,7 @@ extern "C" {
#define PULSE_ENCODER4_CONFIG \
{ \
.tim_handler.Instance = TIM4, \
+ .encoder_irqn = TIM4_IRQn, \
.name = "pulse4" \
}
#endif /* PULSE_ENCODER4_CONFIG */
