• Rahix's avatar
    chore(api-lock): Port to new mutex API · 75278836
    Rahix authored
    Using a bare FreeRTOS mutex is deprecated.  Replace it with the new
    `struct mutex`.  This should increase stability.
    
    Additionally, fix a bug in `lifecycle.c:do_load()` where the function
    would return without unlocking the API mutex if `hardware_reset()`
    returns an error.
    Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
    75278836