[realtek-ambz] Temporarily workaround CHANGE interrupts not supported (#282)
* fix change interruptsnot supported on rtl8710b * Update cores/realtek-amb/arduino/src/wiring_irq.c --------- Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user