← index #5801Issue #14330
Related · high · value 0.993
QUERY · ISSUE

Enable Touchpad IRQ

openby Anders-Steenopened 2020-03-26updated 2020-03-26

Feature request:

Hi, would it be possible to add irq support to the esp32 Touchpad class?

CANDIDATE · ISSUE

Add 'hard' Pin.irq() support for ESP32

closedby m24hopened 2024-04-19updated 2025-01-07
enhancement

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues regarding this feature, and didn't find any.

Description

Micropython on ESP32 board does not support option 'hard=True' in machine.Pin.irq().

This results in unpredictable effects in the case of faster interrupts, and even the number of call-back function being called far exceeds the number of interrupts that actually occur.

Code Size

Since STM32 platforms have implemented hard interrupts, so I don't think that adds much of a burden.

I once glanced at the source code and felt that it was enough to use mp_call_function_1() instead of mp_sched_schedule, and lock/unlock some resources like GC.

Implementation

  • I intend to implement this feature and would submit a Pull Request if desirable.
  • I hope the MicroPython maintainers or community will implement this feature.
  • I would like to Sponsor development of this feature.

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