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

concepts/compiler-interals/interrupts: Clarify documentation on what interrupt.New does #219

Open
soypat opened this issue Oct 29, 2021 · 0 comments

Comments

@soypat
Copy link
Contributor

soypat commented Oct 29, 2021

At no moment in the article is it mentioned what's happening to the function passed to New , should I pass the function to New and also store the function pointer in a hardware register? Or should I do one or the other depending on my target? Does interrupt.New take care of storing the function pointer in the correct hardware register so that NVIC can access it, or does it implement the interrupt via software? In case it needs to store it in the hardware register, then it would have to be implemented in runtime/interrupt, in which case I'd have to check the interrupt functionality I need has been implemented.

This doubt could be solved adding some explanation of what interrupt.New does, which is architecture and processor dependent.

I can work on this if it's alright with y'all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant