Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 5 tasks
m24h opened this issue Apr 19, 2024 · 0 comments
Open
3 of 5 tasks

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

m24h opened this issue Apr 19, 2024 · 0 comments

Comments

@m24h
Copy link

m24h commented Apr 19, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant