← index #4214PR #5719
Off-topic · high · value 4.438
QUERY · ISSUE

ESP32 port missing "hard" kwarg in pin.irq()

openby jedieopened 2018-10-05updated 2025-01-07
enhancementport-esp32

The ESP8266 has hard keyword argument in pin.irq() function. This is missing in ESP32 port.

See also: https://forum.micropython.org/viewtopic.php?p=30748#p30745

CANDIDATE · PULL REQUEST

esp8266/machine_pin: Disable ets_loop_iter during hard IRQ handler.

mergedby dpgeorgeopened 2020-03-04updated 2020-03-10
port-esp8266

Otherwise ets_loop_iter may be reentered.

Fixes issue #5714.

@peterhinch I tested this and it seems to work for me, but would be great if you could also test.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied