Skip to content

general modm interrupt handling examples #703

Answered by salkinium
kikass13 asked this question in Q&A
Discussion options

You must be logged in to vote

There currently is no special interrupt API other than the NVIC_* provided by the CMSIS core. Similiarly the MODM_ISR macros are just for convenience. I think that would be the right place to add that you have to manually declare interrupts using MODM_ISR, unless of course the interrupts are used by the modm library (UART or I2C for example). It's currently unclear to a developer which interrupts are used by modm… There's also no protection against misspelling an interrupt handler, so the developer experience is a little miserable.

The modm-devices data does contain the interrupt table, however, it would perhaps be more useful to add the CMSIS header Doxygen documentation to our docs.modm…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by salkinium
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #573 on September 29, 2021 14:19.