Class STM32f2xx examples use a static c function + weak linking like:
Now I learned already that this won’t work on the photon since it dynamically loads the user code. I also found this api:
- attachSystemInterrupt() (since 0.4.2), but that only covers timers and a few extra ones
- attachInterrupt() only for pins
but none of this covers DMA. I wrote a SPI code for accessing an sdcard and if I want to use DMA instead of polling I need to know when transfers have finished. Likewise I want to stream audio by using the double-buffer dma feature and I need to know when one buffer is done. This is all doable, but I need to someone be able to setup my irq handlers.
So what is the secret api that I am missing?