Browse Source

renesas-ra/extint: Fix issue with Pin.irq not triggering.

Fixes issue #15272.

Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
pull/15550/head
Takeo Takahashi 5 months ago
committed by Damien George
parent
commit
6381ad5d0c
  1. 2
      ports/renesas-ra/extint.c

2
ports/renesas-ra/extint.c

@ -213,6 +213,8 @@ void extint_register_pin(const machine_pin_obj_t *pin, uint32_t mode, bool hard_
ra_icu_priority_irq_no((uint8_t)line, (uint32_t)IRQ_PRI_EXTINT);
extint_irq_no[line] = (uint)line;
ra_icu_set_callback((uint8_t)line, (ICU_CB)extint_callback, (void *)&extint_irq_no[line]);
ra_icu_set_pin(pin->pin, true, true);
ra_icu_enable_pin(pin->pin);
// Enable the interrupt
extint_enable(line);

Loading…
Cancel
Save