Currently max_irq_register_callback() explicitly uses an event name instead of callback_desc->event for no reason. This results in having to repeat the create/update callback list seqence for each event type. Fix this by accesing callback_desc->event instead.
Also, in case we already have an action registered, make sure the MCU specific configuration successfully completes before updating the action.
PR Type
[ ] Bug fix (change that fixes an issue)
[ ] New feature (change that adds new functionality)
[ ] Breaking change (has dependencies in other repos or will cause CI to fail)
Pull Request Description
Currently max_irq_register_callback() explicitly uses an event name instead of callback_desc->event for no reason. This results in having to repeat the create/update callback list seqence for each event type. Fix this by accesing callback_desc->event instead.
Also, in case we already have an action registered, make sure the MCU specific configuration successfully completes before updating the action.
PR Type
PR Checklist