[FL-935] Queue-based SD app cycle. File select widget. (#388)
* SD App: more specific sd api * Gui: view dispatcher fix api documentation * Gui: view holder thingy * SD App: do not sleep when working with sd card bus * SD App: queue-based lifecycle * Assets: sd-card assets * SD App: init file select api Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -27,10 +27,12 @@ bool _fs_init(SdFsInfo* _fs_info) {
|
||||
}
|
||||
|
||||
bool _fs_lock(SdFsInfo* fs_info) {
|
||||
api_hal_power_insomnia_enter();
|
||||
return (osMutexAcquire(fs_info->mutex, osWaitForever) == osOK);
|
||||
}
|
||||
|
||||
bool _fs_unlock(SdFsInfo* fs_info) {
|
||||
api_hal_power_insomnia_exit();
|
||||
return (osMutexRelease(fs_info->mutex) == osOK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user