anomaly1095 / systemZ

ARM assembly kernel with wrappers and drivers provided for other developers in c for the STM32F401 line of MCU's
Other
1 stars 0 forks source link

Write a callback mechanism for IRQs #1

Closed anomaly1095 closed 3 months ago

anomaly1095 commented 3 months ago

First attempt: Array of function pointers for each IRQ

anomaly1095 commented 3 months ago

Issue is that this methods doesnt allow for parameter passing in registers as of this time (memory addresses can be used tho inside functions) a parameter that can be used are registers used by the IRQ (example: SYSTICK IRQ can pass to callback functions the counter value)