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/services/bt/bt_service/bt.h,,
Header,+,applications/services/bt/bt_service/bt_keys_storage.h,,
Header,+,applications/services/cli/cli.h,,
@@ -687,6 +687,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*"
@@ -1372,6 +1373,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,
@@ -1391,6 +1393,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,
@@ -1626,6 +1629,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,
@@ -2509,7 +2513,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*
@@ -2641,7 +2645,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/services/bt/bt_service/bt.h
4 Header + applications/services/bt/bt_service/bt_keys_storage.h
5 Header + applications/services/cli/cli.h
687 Function + bt_keys_storage_alloc BtKeysStorage* const char*
688 Function + bt_keys_storage_delete _Bool BtKeysStorage*
689 Function + bt_keys_storage_free void BtKeysStorage*
690 Function + bt_keys_storage_is_changed _Bool BtKeysStorage*
691 Function + bt_keys_storage_load _Bool BtKeysStorage*
692 Function + bt_keys_storage_set_default_path void Bt*
693 Function + bt_keys_storage_set_file_path void BtKeysStorage*, const char*
1373 Function + furi_hal_rtc_get_log_device FuriHalRtcLogDevice
1374 Function + furi_hal_rtc_get_log_level uint8_t
1375 Function + furi_hal_rtc_get_pin_fails uint32_t
1376 Function - furi_hal_rtc_get_pin_value uint32_t
1377 Function + furi_hal_rtc_get_register uint32_t FuriHalRtcRegister
1378 Function + furi_hal_rtc_get_timestamp uint32_t
1379 Function - furi_hal_rtc_init void
1393 Function + furi_hal_rtc_set_log_device void FuriHalRtcLogDevice
1394 Function + furi_hal_rtc_set_log_level void uint8_t
1395 Function + furi_hal_rtc_set_pin_fails void uint32_t
1396 Function - furi_hal_rtc_set_pin_value void uint32_t
1397 Function + furi_hal_rtc_set_register void FuriHalRtcRegister, uint32_t
1398 Function + furi_hal_rtc_sync_shadow void
1399 Function + furi_hal_sd_get_card_state FuriStatus
1629 Function + furi_thread_get_name const char* FuriThreadId
1630 Function + furi_thread_get_priority FuriThreadPriority FuriThread*
1631 Function + furi_thread_get_return_code int32_t FuriThread*
1632 Function + furi_thread_get_signal_callback FuriThreadSignalCallback const FuriThread*
1633 Function + furi_thread_get_stack_space uint32_t FuriThreadId
1634 Function + furi_thread_get_state FuriThreadState FuriThread*
1635 Function + furi_thread_get_stdout_callback FuriThreadStdoutWriteCallback
2513 Function + storage_get_next_filename void Storage*, const char*, const char*, const char*, FuriString*, uint8_t
2514 Function + storage_get_pubsub FuriPubSub* Storage*
2515 Function + storage_int_backup FS_Error Storage*, const char*
2516 Function + storage_int_restore FS_Error Storage*, const char*, Storage_name_converter Storage*, const char*, StorageNameConverter
2517 Function + storage_sd_format FS_Error Storage*
2518 Function + storage_sd_info FS_Error Storage*, SDInfo*
2519 Function + storage_sd_mount FS_Error Storage*
2645 Function + tar_archive_set_file_callback void TarArchive*, tar_unpack_file_cb, void*
2646 Function + tar_archive_store_data _Bool TarArchive*, const char*, const uint8_t*, const int32_t
2647 Function + tar_archive_unpack_file _Bool TarArchive*, const char*, const char*
2648 Function + tar_archive_unpack_to _Bool TarArchive*, const char*, Storage_name_converter TarArchive*, const char*, TarArchiveNameConverter
2649 Function - tempnam char* const char*, const char*
2650 Function + text_box_alloc TextBox*
2651 Function + text_box_free void TextBox*

View File

@@ -17,7 +17,6 @@
"stm32wb",
"hwdrivers",
"fatfs",
"littlefs",
"toolbox",
"digital_signal",
"signal_reader",