how to write/ add a callback modules? #10188
Unanswered
synapticonashaikh
asked this question in
Core Development
Replies: 1 comment 8 replies
-
@synapticonashaikh You should look at how the other ports implement exactly this (e.g. for pin IRQs). ports/samd/machine_pin.c is a good example (but just about all ports do this). Let us know if you have any specific questions about how this is done. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I'm working on a project where I'm porting the Micropython stack on one of the SOC boards. As the support library of Micropython for the SOC (XMOS based) I'm using is not listed, I used the ports/minimal project. Now, module by module, I'm developing the modules that can provide access to the hardware layer. So, now moving further, I want to build a callback module which takes a user function and triggers based on the GPIO interrupt. In short, just like any ARM-based GPIO interrupt.
Therefore, I would like to request you all help me in creating a callback function based on interrupt.
Micopython sample code:
Beta Was this translation helpful? Give feedback.
All reactions