Willy-JL
2eaf1ffc95
New formatting
2024-07-15 22:32:17 +01:00
Willy-JL
02f7207d28
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-07-15 22:18:35 +01:00
hedger
ffa3996a5e
[FL-3867] Code formatting update ( #3765 )
...
* clang-format: AllowShortEnumsOnASingleLine: false
* clang-format: InsertNewlineAtEOF: true
* clang-format: Standard: c++20
* clang-format: AlignConsecutiveBitFields
* clang-format: AlignConsecutiveMacros
* clang-format: RemoveParentheses: ReturnStatement
* clang-format: RemoveSemicolon: true
* Restored RemoveParentheses: Leave, retained general changes for it
* formatting: fixed logging TAGs
* Formatting update for dev
Co-authored-by: あく <alleteam@gmail.com >
2024-07-15 13:38:49 +09:00
Willy-JL
2d2b0f8201
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev --nobuild
2024-07-01 23:01:37 +02:00
hedger
14b37a68b2
cli: storage: minor subcommand lookup refactor ( #3739 )
...
Co-authored-by: あく <alleteam@gmail.com >
2024-06-30 19:20:12 +01:00
hedger
fcbcb6b5a8
Updater: resource compression ( #3716 )
...
* toolbox: compress: moved decompressor implementation to separate func
* toolbox: compress: callback-based api; cli: storage unpack command
* toolbox: compress: separate r/w contexts for stream api
* targets: f18: sync API
* compress: naming fixes & cleanup
* toolbox: compress: using hs buffer size for stream buffers
* toolbox: tar: heatshrink stream mode
* toolbox: compress: docs & small cleanup
* toolbox: tar: header support for .hs; updater: now uses .hs for resources; .hs.tar: now rewindable
* toolbox: compress: fixed hs stream tail handling
* updater: reworked progress for resources cleanup; rebalanced stage weights
* updater: single-pass decompression; scripts: print resources compression ratio
* updater: fixed warnings
* toolbox: tar: doxygen
* docs: update
* docs: info or tarhs format; scripts: added standalone compression/decompression tool for heatshrink-formatted streams
* scripts: tarhs: fixed parameter handling
* cli: storage extract command; toolbox: tar: guess type based on extension
* unit_tests: added test for streamed raw hs decompressor `compress_decode_streamed`
* unit_tests: compress: added extraction test for .tar.hs
* rpc: autodetect compressed archives
* scripts: minor cleanup of common parts
* scripts: update: now using in-memory intermediate tar stream
* scripts: added hs.py wrapper for heatshrink-related ops (single object and directory-as-tar compression)
* scripts: naming fixes
* Toolbox: export compress_config_heatshrink_default as const symbol
* Toolbox: fix various types naming
* Toolbox: more of types naming fixes
* Toolbox: use size_t in compress io callbacks and structures
* UnitTests: update to match new compress API
* Toolbox: proper path_extract_extension usage
Co-authored-by: あく <alleteam@gmail.com >
2024-06-30 11:38:48 +01:00
Willy-JL
23da827361
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-06-04 03:03:23 +01:00
hedger
03196fa110
cleanup of various warnings from clangd ( #3682 )
...
* cleanup of various warnings from clangs
* lfrfid_debug: cast fixes
* subghz: binraw: round->roundf
* furi: thread: updated internal stack size variable to size_t
* github: fail faster on unsuccessful build
* unit_tests: double trouble
2024-06-03 14:43:23 +01:00
Willy-JL
2fd148878c
Storage: Fix process aliases in rename
2024-05-18 10:08:58 +01:00
Willy-JL
aea1d0be9f
Cleanup import
2024-04-06 23:20:18 +01:00
Willy-JL
9d43b3ccfd
Fix FATfs drive IDs (0=/ext 1=/mnt)
2024-04-06 23:17:19 +01:00
Willy-JL
29c3813f68
Improve error handling, use correct drive id
2024-04-06 23:16:29 +01:00
Nick Shaw
d05080820d
Storage: Updated virtual storage label to use strlcpy
2024-04-06 11:21:23 -04:00
Nick Shaw
aee2120dce
Storage: Virtual volume label is now set from Image Name
2024-04-06 10:04:33 -04:00
Nick Shaw
7869869fb9
Storage: Default volume label DOLPHIN added to virtual storage
2024-04-05 22:25:59 -04:00
Willy-JL
06aea09169
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-03-20 04:18:26 +00:00
あく
acc39a4bc0
Api Symbols: replace asserts with checks ( #3507 )
...
* Api Symbols: replace asserts with checks
* Api Symbols: replace asserts with checks part 2
* Update no args function signatures with void, to help compiler to track incorrect usage
* More unavoidable void
* Update PVS config and code to make it happy
* Format sources
* nfc: fix checks
* dead code cleanup & include fixes
Co-authored-by: gornekich <n.gorbadey@gmail.com >
Co-authored-by: hedger <hedger@users.noreply.github.com >
Co-authored-by: hedger <hedger@nanode.su >
2024-03-19 23:43:52 +09:00
Willy-JL
93cf6cf864
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-03-07 04:38:27 +00:00
Astra
ecab4d53d2
[FL-870] Auto-generated firmware documentation take two ( #2944 )
...
* Add doxygen and doxygen-awesome css, cleanup docs files
* Ignore more libraries and remove leftover local variables
* Create an actual intro page
* .md files linting
* Add doxygen action
* Fix Doxygen path
* Fix doxyfile path
* Try to upload
* Change docs branch
* Add submudules checkout
* Disable doxygen on PR
* Mention the firmware docs in the readme
* More dev docs mentions in the readme
* Fix runner group, add tags
* Test dev in PR
* Disable running on PR
* Fix a typo in the doxyfile
* Try upload to S3
* Fix local path
* Fix S3 ACL
* Add delete flag, unifying dev and tags
* Update ignored directories
* More ignored directories
* Even more ignored directories
* Fix submodule
* Change S3 uploader
* Change S3 uploader version
* Fix aws sync flags
* Fix ACL
* Disable ACL
* Improve ignores, add WiFi devboard docs
* TEMP: generate dev docs
* TEMP: generate 0.89.0 docs
* Disabling PR trigger
* Enable submodules and test build
* Enable test build
* Disable test build
* Change docs directory structure
* Fix accidentally committed submodule
* Fix submodules
* Update links to the developer documentation
* Markdown linting
* Update workflow, enable test build
* Fix doxygen dir path
* Update Doxyfile-awesome.cfg
* Change paths
* Fix upload docs path
* Disable pull_request debug trigger
* Disable tags building
* Remove autolinks and namespaces
* Establish basic documentation structure
* Add missing changes
* Improve stylesheet, move some files
* Improve examples
* Improve the main page
* Improve application dev docs
* Improve system programming docs
* Improve development tools docs
* Improve other docs
* Improve application examples
* Fix formatting
* Fix PVS-studio warnings
* Improve visuals
* Fix doxygen syntax warnings
* Fix broken links
* Update doxygen action
Co-authored-by: DrunkBatya <drunkbatya.js@gmail.com >
Co-authored-by: あく <alleteam@gmail.com >
Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com >
Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com >
2024-03-06 15:25:21 +09:00
Willy-JL
fab29dbc6f
Storage: New Virtual Mount API for FATFS disk images
2024-02-20 03:17:54 +00:00
Willy-JL
49a9b1f2b2
Correct FatFs drive path (prep for logical volumes)
2024-02-20 00:50:28 +00:00
Willy-JL
d49e5d1fbe
Small code fix in storage
2024-02-19 20:51:47 +00:00
Willy-JL
895627d1cd
oops
2024-02-17 06:32:01 +00:00
Willy-JL
dea44f0daf
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into dev
2023-12-13 00:35:37 +00:00
あく
90cb1c4f2e
FuriHal: RTC register reset API. New factory reset routine that wipes all RTC backup registers content. ( #3288 )
2023-12-12 19:12:57 +04:00
Willy-JL
e0fa360640
Fix rename/move API, now rename/rename_safe ( #468 )
...
On OFW "rename" acts like "move", it replaces the destination
XFW had an extra "move" like that, and "rename" errored if dest exists
Now for compatibility "rename" acts as OFW, and new "rename_safe" errors
Tweaked all usages to work properly
Decided for CLI and RPC to use "rename_safe" so user cant lose files
2023-11-28 00:00:40 +00:00
Willy-JL
750f371182
Fix copy/paste and rename behaviors
...
Same beginning of name != same file/folder
Must check with a / suffixed
And never hold a pointer to furi string cstr
2023-11-25 18:11:54 +00:00
Willy-JL
09c6cf168e
Merge and improve new storage rename/move
2023-11-16 03:03:41 +00:00
Willy-JL
a4d01d5d88
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
2023-11-16 02:19:28 +00:00
Sergey Gavrilov
4b3e8aba29
[FL-3664] 64k does not enough ( #3216 )
...
* Unit tests: add "exists" to furi_record tests
* Unit tests: mu_warn, storage 64k test
* Storage: read/write over 64k
* Unit tests: moar tests for storage r/w for >64k cases
* Apps, libs: replace uint16_t with size_t on storage r/w operations
* Unit tests: better data pattern, subghz: warning if transmission is prohibited
Co-authored-by: あく <alleteam@gmail.com >
2023-11-16 01:39:27 +09:00
Georgii Surkov
ba074068b0
[FL-3662] Do not remove file when renaming to itself ( #3193 )
...
* Do not allow overwriting a file with dir and support renaming file to itself
* Fix operator precedence error
* Add support for storage-specific path equivalence checks
* Fix typo
* Fix updater compilation
* Update Doxygen comments in storage.h
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2023-11-15 17:56:13 +09:00
Willy-JL
418f44fef1
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
2023-11-12 02:56:30 +00:00
あく
176fb21f5f
Storage: speedup write_chunk cli command ( #3173 )
...
* Storage: speedup write_chunk cli command
* Storage: handle disconnect on write_chunk correctly
2023-10-30 18:51:51 +04:00
Willy-JL
f8fc8cbdf8
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev --nobuild
2023-10-15 06:25:14 +01:00
MX
b87a8ca329
Merge branch 'ofw_dev' into dev
2023-10-15 01:30:55 +03:00
あく
f45a5dff43
Fix various crashes if debug libraries used ( #3144 )
...
* FuriHal: enable HSI in stop mode only if we use STOP0, proper SMPS selected clock assert
* Furi: fix double crash caused by bkpt use outside of debug session
* Libs: update ERC and MGG contrast
* Fix various crashes with LIB_DEBUG=1
* BadUsb: size_t where it should be and proper printf types
* Various fixes and make PVS happy
* FuriHal: proper CCID status and make PVS happy
* boot: update mode: graceful handling of corrupted stage file
---------
Co-authored-by: hedger <hedger@nanode.su >
2023-10-12 20:34:30 +04:00
Willy-JL
4b2cc53280
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev --nobuild
2023-09-16 19:28:54 +02:00
MX
eb2607f308
Merge branch 'ofw_dev' into dev
2023-09-11 15:26:26 +03:00
Sergey Gavrilov
4705812d24
SD-Card: proper HAL ( #3058 )
...
* Storage: remove unused error from SDInfo
* FatFS: remove sd_spi_io
* HAL: sd card api
* Update: use sd hal
* FatFS: use sd hal
* Storage: use sd hal
* API: sd hal
* Fix TODO workflow
* SD Hal: Fix source buffer overflow
* fix for fix!
* HAL: cleanup sd detection api
* HAL: FURI_HAL_SD_SPI_DEBUG flag
* HAL: FuriHalSdStatus -> FuriStatus
* API: downgrade
* Change define logic
* HAL: presence
2023-09-11 18:30:56 +09:00
Willy-JL
cd301b4045
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev --nobuild
2023-09-04 23:36:06 +02:00
MX
9c6e20356f
Merge branch 'ofw-dev' into dev
2023-09-04 16:47:08 +03:00
Sergey Gavrilov
0b806c2360
Storage: force mount ( #3033 )
...
* Storage: count opened files
* Storage: sd mount
* Storage: prompt to mount SD card if not mounted
* F18: update API
* F18: update API version
* Fix logger naming scheme
* Storage: storage_files_count -> storage_open_files_count
Co-authored-by: あく <alleteam@gmail.com >
2023-09-04 14:10:07 +09:00
Willy-JL
034edf50ce
Mass storage revert to expand (max 2G img w/ seek)
...
This reverts commit 54804fcc66 .
2023-08-29 03:25:45 +02:00
Willy-JL
d7aa3ea60f
Make all service memory structures OFW comaptible
2023-08-29 01:57:06 +02:00
Willy-JL
54804fcc66
Remove file expand, use seek for mass storage
2023-08-29 01:33:31 +02:00
Willy-JL
8bdbdaa6f5
Tweak services orders
...
Same order but numbers match OFW
2023-08-29 00:49:15 +02:00
Willy-JL
17a6822a09
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev
2023-08-27 22:14:33 +02:00
MX
20593d56c0
Merge branch 'ofw-dev' into dev
2023-08-22 21:53:50 +03:00
Astra
e353433cd8
[FL-3488] Assign tickets to all TODO items ( #2988 )
...
Co-authored-by: あく <alleteam@gmail.com >
2023-08-23 02:56:27 +09:00
Willy-JL
367389367a
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev
2023-08-10 02:18:22 +02:00