Skip to content

Commit

Permalink
[realtek-ambz] Temporarily workaround CHANGE interrupts not supported (
Browse files Browse the repository at this point in the history
…#282)

* fix change interruptsnot supported on rtl8710b

* Update cores/realtek-amb/arduino/src/wiring_irq.c

---------

Co-authored-by: Kuba Szczodrzyński <[email protected]>
  • Loading branch information
Jaco1990 and kuba2k2 authored May 31, 2024
1 parent 21a194f commit fa2064b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cores/realtek-amb/arduino/src/wiring_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ void attachInterruptParam(pin_size_t interruptNumber, voidFuncPtrParam callback,
case CHANGE:
#if LT_RTL8720C
event = IRQ_FALL_RISE;
// Prevents Change interrupt errors on RTL8710B chips.
#elif LT_RTL8710B
event = IRQ_RISE;
#else
LT_W("CHANGE interrupts not supported");
#endif
Expand Down

0 comments on commit fa2064b

Please sign in to comment.