Open brandonbraun653 opened 4 years ago
Implementation thoughts: It would be nice if each peripheral instance had the option to register 1 asynchronous callback and 1 immediate callback. If more than one is needed, then the registered hook can expand things further and call into more functions. This should limit complexity and allow faster execution.
After listening to the Embedded.FM podcast and hearing complaints about the STM32 HAL's slow ISR handling, I've decided that it would be a good idea to add support for two kinds of event driven ISR callbacks to cater to the different system needs.