-
As far as i could tell, there are no common examples for the nucleo and interrupt handling is not documented properly What should be there
Examples that should be included
Am I wrong here? What do you guys think |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
There currently is no special interrupt API other than the 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.io generator. I was under the (false) impression that it already was, but I cannot find it anywhere. |
Beta Was this translation helpful? Give feedback.
-
@salkinium at least the enum can be looked up in that header. I wasnt sure where these are defined, some simple examples should help mitigate my confusion. I successfully wrote a button example for the nucleo boards (HURRAY, im god tier now ... :P) because i was unsure about the ethernet stuff not working when using the nucleof439zi
|
Beta Was this translation helpful? Give feedback.
-
Yeah… it's complicated and that's why we haven't made any progress. We have however tried some things, see #307 and #308. |
Beta Was this translation helpful? Give feedback.
-
You can btw remap the vector table to RAM via the |
Beta Was this translation helpful? Give feedback.
There currently is no special interrupt API other than the
NVIC_*
provided by the CMSIS core. Similiarly theMODM_ISR
macros are just for convenience. I think that would be the right place to add that you have to manually declare interrupts usingMODM_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…