Closed klsc-zeat closed 1 year ago
We should probably go directly for Option 2. The mechanism of knowing which interrupt needs what peripheral instance callback is already there (via the selected lbuild modules) and we "only" need to convert the individual interrupt handlers into function and call them from a central place. I'm happy to guide you via PR reviews.
I have implemented the shared interrupt handling for the I2C driver and opened a draft PR. Everything is untested since I don't have access to any STM32 hardware right now. SPI should be easy to do because we don't actually use the SPI interrupt handlers in the driver, only DMA handlers for the DMA SPI.
The G0 B/C line of devices are currently blacklisted in the repository because of the problem with the shared interrupt lines. My question would be: What is an acceptable way to support these devices?
So basically what i want to know is: If a patch for Option 1 has a chance of being accepted or would you need Option 2?