1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

Storage: remove LFS (#3577)

* Storage: drop internal storage

* Storage: rollback some unnecessary changes

* Storage: rollback some unnecessary changes part 2

* Storage: cleanup various defines and int handling. Ble: allow short connection interval if internal flash is not used.

* Storage: do not return storage if it is not ready

* Save PIN code to RTC, update settings

* Simplify the code, clean up includes

* Rearrange some code

* apps: storage_move_to_sd: conditionally enable with --extra-define=STORAGE_INT_ON_LFS

* Load Desktop settings automatically

* Redirect /any to /ext

* Abolish storage_move_to_sd app

* Remove as many mentions of ANY_PATH as possible

* Fix desktop settings wrongly not loading

* Improve desktop settings handling and strings

* Load BLE settings and keys automatically

* Improve BLE configuration procedure

* Do not load bluetooth keys twice if they were already loaded

* Load dolphin state automatically

* Fix merge artifact

* Load notification settings automatically

* Update desktop settings strings

* Load expansion settings automatically

* Do not use thread signals to reload desktop settings

* Load region data automatically, separate to its own hook

* Improve ble behaviour with no keys

* Fix Dolphin state not resetting correctly

* Add a status check

* Make Desktop save its own settings

* Check result when taking and releasing mutex

* Improve default thread signal handling in FuriEventLoop

* Make bt service in charge of saving settings, add settings api

* Fix a deadlock due to timer thread not receiving time

* Lock core2 when reinitialising bt

* Update clang-format

* Revert "Update clang-format"

This reverts commit d61295ac063c6ec879375ceeab54d6ff2c90a9a1.

* Format sources with clang-format

* Revert old stack size for desktop settings

* Allocate big struct dynamically

* Simplify PIN comparison

* Save pointer to storage in Desktop object

* Fix region provisioning for hardware regions

* Remove stale TODO + siimplify code

* Clean up region.c

* Use sizeof instead of macro define

* Limit PIN length to 10 for consistency

* Emit a warning upon usage of /any

* Add delay after finding flipper

* Remove unnecessary delay

* Remove all mentions of STORAGE_INT_ON_LFS

* Remove littlefs and internal storage

* Remove all possible LittleFS mentions

* Fix browser tab in Archive

* Ble: fix connection interval explanation

* Bump API Symbols

* BLE: Update comments interval connection comments

* Storage: clear FuriHalRtcFlagStorageFormatInternal if set

---------

Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com>
Co-authored-by: hedger <hedger@nanode.su>
Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com>
This commit is contained in:
あく
2024-08-04 18:54:02 +09:00
committed by GitHub
parent 4f46032d32
commit 4d985ba8f8
117 changed files with 1392 additions and 2125 deletions

View File

@@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,70.0,,
Version,+,71.0,,
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/bt/bt_service/bt_keys_storage.h,,
@@ -764,6 +764,7 @@ Function,+,bt_forget_bonded_devices,void,Bt*
Function,+,bt_keys_storage_alloc,BtKeysStorage*,const char*
Function,+,bt_keys_storage_delete,_Bool,BtKeysStorage*
Function,+,bt_keys_storage_free,void,BtKeysStorage*
Function,+,bt_keys_storage_is_changed,_Bool,BtKeysStorage*
Function,+,bt_keys_storage_load,_Bool,BtKeysStorage*
Function,+,bt_keys_storage_set_default_path,void,Bt*
Function,+,bt_keys_storage_set_file_path,void,"BtKeysStorage*, const char*"
@@ -1556,6 +1557,7 @@ Function,+,furi_hal_rtc_get_log_baud_rate,FuriHalRtcLogBaudRate,
Function,+,furi_hal_rtc_get_log_device,FuriHalRtcLogDevice,
Function,+,furi_hal_rtc_get_log_level,uint8_t,
Function,+,furi_hal_rtc_get_pin_fails,uint32_t,
Function,-,furi_hal_rtc_get_pin_value,uint32_t,
Function,+,furi_hal_rtc_get_register,uint32_t,FuriHalRtcRegister
Function,+,furi_hal_rtc_get_timestamp,uint32_t,
Function,-,furi_hal_rtc_init,void,
@@ -1575,6 +1577,7 @@ Function,+,furi_hal_rtc_set_log_baud_rate,void,FuriHalRtcLogBaudRate
Function,+,furi_hal_rtc_set_log_device,void,FuriHalRtcLogDevice
Function,+,furi_hal_rtc_set_log_level,void,uint8_t
Function,+,furi_hal_rtc_set_pin_fails,void,uint32_t
Function,-,furi_hal_rtc_set_pin_value,void,uint32_t
Function,+,furi_hal_rtc_set_register,void,"FuriHalRtcRegister, uint32_t"
Function,+,furi_hal_rtc_sync_shadow,void,
Function,+,furi_hal_sd_get_card_state,FuriStatus,
@@ -1840,6 +1843,7 @@ Function,+,furi_thread_get_id,FuriThreadId,FuriThread*
Function,+,furi_thread_get_name,const char*,FuriThreadId
Function,+,furi_thread_get_priority,FuriThreadPriority,FuriThread*
Function,+,furi_thread_get_return_code,int32_t,FuriThread*
Function,+,furi_thread_get_signal_callback,FuriThreadSignalCallback,const FuriThread*
Function,+,furi_thread_get_stack_space,uint32_t,FuriThreadId
Function,+,furi_thread_get_state,FuriThreadState,FuriThread*
Function,+,furi_thread_get_stdout_callback,FuriThreadStdoutWriteCallback,
@@ -3186,7 +3190,7 @@ Function,+,storage_file_write,size_t,"File*, const void*, size_t"
Function,+,storage_get_next_filename,void,"Storage*, const char*, const char*, const char*, FuriString*, uint8_t"
Function,+,storage_get_pubsub,FuriPubSub*,Storage*
Function,+,storage_int_backup,FS_Error,"Storage*, const char*"
Function,+,storage_int_restore,FS_Error,"Storage*, const char*, Storage_name_converter"
Function,+,storage_int_restore,FS_Error,"Storage*, const char*, StorageNameConverter"
Function,+,storage_sd_format,FS_Error,Storage*
Function,+,storage_sd_info,FS_Error,"Storage*, SDInfo*"
Function,+,storage_sd_mount,FS_Error,Storage*
@@ -3482,7 +3486,7 @@ Function,+,tar_archive_open,_Bool,"TarArchive*, const char*, TarOpenMode"
Function,+,tar_archive_set_file_callback,void,"TarArchive*, tar_unpack_file_cb, void*"
Function,+,tar_archive_store_data,_Bool,"TarArchive*, const char*, const uint8_t*, const int32_t"
Function,+,tar_archive_unpack_file,_Bool,"TarArchive*, const char*, const char*"
Function,+,tar_archive_unpack_to,_Bool,"TarArchive*, const char*, Storage_name_converter"
Function,+,tar_archive_unpack_to,_Bool,"TarArchive*, const char*, TarArchiveNameConverter"
Function,-,tempnam,char*,"const char*, const char*"
Function,+,text_box_alloc,TextBox*,
Function,+,text_box_free,void,TextBox*
1 entry status name type params
2 Version + 70.0 71.0
3 Header + applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h
4 Header + applications/services/bt/bt_service/bt.h
5 Header + applications/services/bt/bt_service/bt_keys_storage.h
764 Function + bt_keys_storage_alloc BtKeysStorage* const char*
765 Function + bt_keys_storage_delete _Bool BtKeysStorage*
766 Function + bt_keys_storage_free void BtKeysStorage*
767 Function + bt_keys_storage_is_changed _Bool BtKeysStorage*
768 Function + bt_keys_storage_load _Bool BtKeysStorage*
769 Function + bt_keys_storage_set_default_path void Bt*
770 Function + bt_keys_storage_set_file_path void BtKeysStorage*, const char*
1557 Function + furi_hal_rtc_get_log_device FuriHalRtcLogDevice
1558 Function + furi_hal_rtc_get_log_level uint8_t
1559 Function + furi_hal_rtc_get_pin_fails uint32_t
1560 Function - furi_hal_rtc_get_pin_value uint32_t
1561 Function + furi_hal_rtc_get_register uint32_t FuriHalRtcRegister
1562 Function + furi_hal_rtc_get_timestamp uint32_t
1563 Function - furi_hal_rtc_init void
1577 Function + furi_hal_rtc_set_log_device void FuriHalRtcLogDevice
1578 Function + furi_hal_rtc_set_log_level void uint8_t
1579 Function + furi_hal_rtc_set_pin_fails void uint32_t
1580 Function - furi_hal_rtc_set_pin_value void uint32_t
1581 Function + furi_hal_rtc_set_register void FuriHalRtcRegister, uint32_t
1582 Function + furi_hal_rtc_sync_shadow void
1583 Function + furi_hal_sd_get_card_state FuriStatus
1843 Function + furi_thread_get_name const char* FuriThreadId
1844 Function + furi_thread_get_priority FuriThreadPriority FuriThread*
1845 Function + furi_thread_get_return_code int32_t FuriThread*
1846 Function + furi_thread_get_signal_callback FuriThreadSignalCallback const FuriThread*
1847 Function + furi_thread_get_stack_space uint32_t FuriThreadId
1848 Function + furi_thread_get_state FuriThreadState FuriThread*
1849 Function + furi_thread_get_stdout_callback FuriThreadStdoutWriteCallback
3190 Function + storage_get_next_filename void Storage*, const char*, const char*, const char*, FuriString*, uint8_t
3191 Function + storage_get_pubsub FuriPubSub* Storage*
3192 Function + storage_int_backup FS_Error Storage*, const char*
3193 Function + storage_int_restore FS_Error Storage*, const char*, Storage_name_converter Storage*, const char*, StorageNameConverter
3194 Function + storage_sd_format FS_Error Storage*
3195 Function + storage_sd_info FS_Error Storage*, SDInfo*
3196 Function + storage_sd_mount FS_Error Storage*
3486 Function + tar_archive_set_file_callback void TarArchive*, tar_unpack_file_cb, void*
3487 Function + tar_archive_store_data _Bool TarArchive*, const char*, const uint8_t*, const int32_t
3488 Function + tar_archive_unpack_file _Bool TarArchive*, const char*, const char*
3489 Function + tar_archive_unpack_to _Bool TarArchive*, const char*, Storage_name_converter TarArchive*, const char*, TarArchiveNameConverter
3490 Function - tempnam char* const char*, const char*
3491 Function + text_box_alloc TextBox*
3492 Function + text_box_free void TextBox*