Skip to content

Commit aa7e3ec

Browse files
Merge pull request #322 from facchinm/fix_renesas
renesas: disable capture interrupt before open()
2 parents 0b53813 + 80dea91 commit aa7e3ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/drivers/hardware_specific/renesas/renesas.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ bool configureTimerPin(RenesasHardwareDriverParams* params, uint8_t index, bool
207207
t->timer_cfg.cycle_end_irq = FSP_INVALID_VECTOR;
208208

209209
t->ext_cfg.p_pwm_cfg = &(t->pwm_cfg);
210+
t->ext_cfg.capture_a_ipl = BSP_IRQ_DISABLED;
211+
t->ext_cfg.capture_a_irq = FSP_INVALID_VECTOR;
212+
t->ext_cfg.capture_b_ipl = BSP_IRQ_DISABLED;
213+
t->ext_cfg.capture_b_irq = FSP_INVALID_VECTOR;
210214
t->pwm_cfg.trough_ipl = BSP_IRQ_DISABLED;
211215
t->pwm_cfg.trough_irq = FSP_INVALID_VECTOR;
212216
t->pwm_cfg.poeg_link = GPT_POEG_LINK_POEG0;

0 commit comments

Comments
 (0)