← index #6581PR #7239
Related · high · value 0.528
QUERY · ISSUE

docs: add section about interrupts to the quick reference (e.g. for ESP32)

openby solarjoeopened 2020-10-29updated 2025-10-03
docsport-esp32

I could not find the information that e.g. all interrupts on the ESP32 are soft interrupts and
the limitations about memory allocation mentioned at https://docs.micropython.org/en/latest/reference/isr_rules.html
are not relevant. This could be added to a section about interrupts in the Quickref.

Some text:

On ESP32 for example, all IRQs are "soft" which means they run in the MicroPython scheduler.
In general, the foo.irq(..., hard=) kwarg lets you control whether an IRQ is hard (runs in true interrupt context, no allocations) or soft (not very many restrictions). http://docs.micropython.org/en/latest/library/machine.Pin.html#machine.Pin.irq On ESP32 this kwarg is ignored because it must always be soft, but for example Pyboard/STM32 lets you use either.

from https://forum.micropython.org/viewtopic.php?f=2&t=9224#p51900

CANDIDATE · PULL REQUEST

GPIO interrpt pins added for ESP32

closedby NitiKauropened 2021-05-10updated 2021-06-19
docs

@dpgeorge PR for Issue #6581, where I have added the interrupt pins for ESP32.
Also, I want to participate in GSOD but can't seem to contact my mentors thru any IRC Channel or Micropython forum or thru mail. If you know about them, can you please suggest me an alernative

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