Willy-JL
7e3a65dfd3
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2025-04-04 11:51:56 +01:00
Anna Antonenko
5dcf6b55ef
[FL-3928, FL-3929] CLI commands in fals and threads ( #4116 )
...
* feat: FuriThread stdin
* ci: fix f18
* feat: stdio callback context
* feat: FuriPipe
* POTENTIALLY EXPLOSIVE pipe welding
* fix: non-explosive welding
* Revert welding
* docs: furi_pipe
* feat: pipe event loop integration
* update f18 sdk
* f18
* docs: make doxygen happy
* fix: event loop not triggering when pipe attached to stdio
* fix: partial stdout in pipe
* allow simultaneous in and out subscription in event loop
* feat: vcp i/o
* feat: cli ansi stuffs and history
* feat: more line editing
* working but slow cli rewrite
* restore previous speed after 4 days of debugging 🥲
* fix: cli_app_should_stop
* fix: cli and event_loop memory leaks
* style: remove commented out code
* ci: fix pvs warnings
* fix: unit tests, event_loop crash
* ci: fix build
* ci: silence pvs warning
* feat: cli gpio
* ci: fix formatting
* Fix memory leak during event loop unsubscription
* Event better memory leak fix
* feat: cli completions
* Merge remote-tracking branch 'origin/dev' into portasynthinca3/3928-cli-threads
* merge fixups
* temporarily exclude speaker_debug app
* pvs and unit tests fixups
* feat: commands in fals
* move commands out of flash, code cleanup
* ci: fix errors
* fix: run commands in buffer when stopping session
* speedup cli file transfer
* fix f18
* separate cli_shell into modules
* fix pvs warning
* fix qflipper refusing to connect
* remove temp debug logs
* remove erroneous conclusion
* Fix memory leak during event loop unsubscription
* Event better memory leak fix
* unit test for the fix
* improve thread stdio callback signatures
* pipe stdout timeout
* update api symbols
* fix f18, formatting
* fix pvs warnings
* increase stack size, hope to fix unit tests
* cli completions
* more key combos
* commands in fals
* move commands out of flash
* ci: fix errors
* speedup cli file transfer
* merge fixups
* fix f18
* cli: revert flag changes
* cli: fix formatting
* cli, fbt: loopback perf benchmark
* thread, event_loop: subscribing to thread flags
* cli: signal internal events using thread flags, improve performance
* fix f18, formatting
* event_loop: fix crash
* storage_cli: increase write_chunk buffer size again
* cli: explanation for order=0
* thread, event_loop: thread flags callback refactor
* cli: increase stack size
* cli: rename cli_app_should_stop -> cli_is_pipe_broken_or_is_etx_next_char
* cli: use plain array instead of mlib for history
* cli: prepend file name to static fns
* cli: fix formatting
* cli_shell: increase stack size
* cli_shell: give up pipe to command thread
* fix formatting
* fix: format
* fix merge
* fix. merge.
* cli_shell: fix detach ordering
* desktop: record_cli -> record_cli_vcp
* cli: fix spelling, reload/remove ext cmds on card mount/unmount
* cli: fix race conditions and formatting
* scripts: wait for CTS to go high before starting flipper
* scripts: better race condition fix
* REVERT THIS: test script race condition fix
* Revert "REVERT THIS: test script race condition fix"
This reverts commit 3b028d29b07212755872c5706c8c6a58be551636.
* REVERT THIS: test script fix
* scripts: sleep?
* cli: updated oplist for CliCommandTree
* Revert "REVERT THIS: test script fix"
This reverts commit e9846318549ce092ef422ff97522ba51916163be.
* cli: mention memory leak in FL ticket
---------
Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com >
Co-authored-by: あく <alleteam@gmail.com >
Co-authored-by: hedger <hedger@nanode.su >
2025-04-03 21:39:53 +04:00
Willy-JL
7f46fe5d5c
Merge remote-tracking branch 'ofw/dev' into mntm-dev --nobuild
2025-04-03 06:19:15 +01:00
Willy-JL
858526cae1
Revert "[FL-3909] CLI improvements, part I ( #3928 )" --nobuild
...
This reverts commit 0f831412fa .
This was reverted by OFW right after it was made, back in October 2024.
They are now getting back to implementing these features differently.
Thus, a revert is in order. But neofetch is staying :)
2025-04-03 02:22:36 +01:00
Anna Antonenko
13333edd30
[FL-3954, FL-3955] New CLI architecture ( #4111 )
...
* feat: FuriThread stdin
* ci: fix f18
* feat: stdio callback context
* feat: FuriPipe
* POTENTIALLY EXPLOSIVE pipe welding
* fix: non-explosive welding
* Revert welding
* docs: furi_pipe
* feat: pipe event loop integration
* update f18 sdk
* f18
* docs: make doxygen happy
* fix: event loop not triggering when pipe attached to stdio
* fix: partial stdout in pipe
* allow simultaneous in and out subscription in event loop
* feat: vcp i/o
* feat: cli ansi stuffs and history
* feat: more line editing
* working but slow cli rewrite
* restore previous speed after 4 days of debugging 🥲
* fix: cli_app_should_stop
* fix: cli and event_loop memory leaks
* style: remove commented out code
* ci: fix pvs warnings
* fix: unit tests, event_loop crash
* ci: fix build
* ci: silence pvs warning
* feat: cli gpio
* ci: fix formatting
* Fix memory leak during event loop unsubscription
* Event better memory leak fix
* feat: cli completions
* Merge remote-tracking branch 'origin/dev' into portasynthinca3/3928-cli-threads
* merge fixups
* temporarily exclude speaker_debug app
* pvs and unit tests fixups
* feat: commands in fals
* move commands out of flash, code cleanup
* ci: fix errors
* fix: run commands in buffer when stopping session
* speedup cli file transfer
* fix f18
* separate cli_shell into modules
* fix pvs warning
* fix qflipper refusing to connect
* remove temp debug logs
* remove erroneous conclusion
* Fix memory leak during event loop unsubscription
* Event better memory leak fix
* unit test for the fix
* improve thread stdio callback signatures
* pipe stdout timeout
* update api symbols
* fix f18, formatting
* fix pvs warnings
* increase stack size, hope to fix unit tests
* cli: revert flag changes
* cli: fix formatting
* cli, fbt: loopback perf benchmark
* thread, event_loop: subscribing to thread flags
* cli: signal internal events using thread flags, improve performance
* fix f18, formatting
* event_loop: fix crash
* storage_cli: increase write_chunk buffer size again
* cli: explanation for order=0
* thread, event_loop: thread flags callback refactor
* cli: increase stack size
* cli: rename cli_app_should_stop -> cli_is_pipe_broken_or_is_etx_next_char
* cli: use plain array instead of mlib for history
* cli: prepend file name to static fns
* cli: fix formatting
* cli_shell: increase stack size
* cli: fix rpc lockup
* cli: better lockup fix
* cli: fix f18
* fix merge
---------
Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com >
Co-authored-by: あく <alleteam@gmail.com >
2025-04-02 22:10:10 +04:00
Willy-JL
ab85ec4cc9
Enable debug on flipper when attaching blackmagic --nobuild
2025-03-02 00:42:06 +00:00
Willy-JL
f151527ffb
Move "info" CLI command back to flash --nobuild
...
Fixes FBT when API versions mismatch
2025-01-17 01:43:26 +00:00
dexv
dbbecd9e1f
CLI: Add 'clear' command and command suggestion ( #342 )
...
* Add 'clear' command and improve command suggestion in CLI
- Introduced a new CLI command 'clear' (alias 'cls') to clear the terminal screen.
- Enhanced command not found feedback by suggesting similar commands based on user input.
- Added a function to calculate string distance for better command matching.
* Review changes
* Update changelog
---------
Co-authored-by: dexv <89728480+DXVVAY@users.noreply.github.com >
Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com >
2025-01-13 02:44:09 +00:00
WillyJL
2e7eedf291
CLI: More commands as plugins on SD -6KB DFU, refactor plugin wrapper, ( #276 )
...
* Unused icons to check later
* Exclude disabled icons from firmware
* Format
* CLI: Test moving more cmds to plugins
* CLI: Macro template for plugin wrapper
* Fix plugin filenames
* Retrofit older cli wrappers
* Fix unused
* Fix manifests
* Add explanation
* Revert "Unused icons to check later"
This reverts commit b7f98e344c .
* Revert "Exclude disabled icons from firmware"
This reverts commit ab62e99898 .
* Add back toplevel chat command
* Add DFU size to github comment
* Fix build
* Fix BT CLI preload fail
* Add these back
* Fix CLI command gpio preload fail
* Fix input command
* These can stay
* Fix negative size rounding
* Update changelog
* Fix DFU size calc
2024-11-04 09:42:25 +01:00
Willy-JL
019d896075
Merge remote-tracking branch 'ofw/dev' into js-backport-of-backport
2024-10-18 04:38:56 +01:00
porta
b723d463af
Revert "[FL-3909] CLI improvements, part I ( #3928 )" ( #3955 )
...
This reverts commit 0f831412fa .
Co-authored-by: あく <alleteam@gmail.com >
2024-10-17 17:12:27 +01:00
Ivan Barsukov
ca68c953c0
Add warning about stealth mode in vibro CLI ( #3957 )
2024-10-17 16:57:10 +01:00
Willy-JL
2f6faa1b7b
Merge remote-tracking branch 'ul/dev' into mntm-dev
2024-10-16 00:56:19 +01:00
Willy-JL
88dfe97a89
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-10-15 23:43:33 +01:00
MX
e3f393e505
Merge remote-tracking branch 'OFW/dev' into dev
2024-10-14 18:00:10 +03:00
porta
0f831412fa
[FL-3909] CLI improvements, part I ( #3928 )
...
* fix: cli top blinking
* feat: clear prompt on down key
* feat: proper-er ansi escape sequence handling
* ci: fix compact build error
* Make PVS happy
* style: remove magic numbers
* style: review suggestions
Co-authored-by: あく <alleteam@gmail.com >
2024-10-14 15:50:18 +01:00
MX
56530ee61c
Merge remote-tracking branch 'OFW/dev' into dev
2024-09-05 22:10:41 +03:00
Willy-JL
f65d4bb233
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-09-05 19:17:18 +02:00
porta
c9791a280a
[FL-3884] Proper integer parsing ( #3839 )
...
* feat: strint_to_uint32 and tests
* fix: permit explicit bases and prefixes
* feat: strint_to_{int32,uint16,int16}
* feat: strint_to_u?int64
* refactor: replace strtol, strtoul, sscanf with strint_to_*
* fix: api symbols
* docs: document parameter `end` of strint_to_uint_32
* style: apply changes requested by hedger
* refactor: fix pvs-studio diagnostic
* style: apply changes requested by CookiePLMonster
* fix: unused var
* fix: pointer type
* refactor: convert atoi to strint_to_*
* fix: strint_to_uint8 doesn't actually exist ._ .
* fix: memory leak
* style: address review comments
* Toolbox: couple small comments in the code and doxygen comment update. SubGhz, Loader: fix strint usage.
* Loader: fix incorrect cast
Co-authored-by: あく <alleteam@gmail.com >
2024-09-05 18:02:42 +01:00
Willy-JL
b4c24e6e4b
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-07-31 23:06:48 +02:00
MX
e74e6cdd02
Merge remote-tracking branch 'OFW/dev' into dev
2024-07-31 22:38:15 +03:00
hedger
380ec2ac46
Added -Wundef to compiler options ( #3815 )
...
* fbt: added -Wundef to compiler options; libs: various small fixes for missing defines; desktop: proper access to current RTOS config
* apps: fixes for FURI_DEBUG handling
* rpc: unified definition checks
* Cleanup various defines use
* Cleanup configs and move SVCall ISR priority configuration to furi_hal_interrupts
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-08-01 01:38:20 +09:00
Willy-JL
33896ef98f
Fix vscode's fumbled merge conflicts
2024-07-15 23:08:42 +01:00
Willy-JL
02f7207d28
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-07-15 22:18:35 +01:00
MX
726cb770d0
formatting
2024-07-15 20:02:45 +03: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
MX
a7ca56cf4e
Merge remote-tracking branch 'OFW/dev' into dev
2024-07-07 02:22:08 +03:00
Willy-JL
9f03cdb721
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-07-06 19:44:49 +02:00
あく
cf0cc4fa8d
Furi: count ISR time. Cli: show ISR time in top. ( #3751 )
...
* Furi: count ISR time. Cli: show ISR time in top.
* hal: interrupt: macros for interrupt accounting; split FURI_ALWAYS_STATIC_INLINE -> FURI_ALWAYS_INLINE static
Co-authored-by: hedger <hedger@nanode.su >
Co-authored-by: hedger <hedger@users.noreply.github.com >
2024-07-06 11:44:25 +01:00
Willy-JL
4830ef94c6
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-07-05 20:01:29 +02:00
hedger
7879876ba1
[FL-3863] toolchain: v37 ( #3746 )
...
* toolchain: v36
* toolchain: fixed cert path; lib: nanopb: updated to 0.4.8
* fbtenv: rolled back cert path for 3.11
* clang-format: updated config for v18
* linter fixes
* clang-format: properly regenerated config (`clang-format -style=file:.clang-format -dump-config > .clang-format-new; mv .clang-format-new .clang-format`)
* clang-format: AllowShortLoopsOnASingleLine: false
* toolchain: v37
* fbt: compilation_db.py: fixes for Windows
2024-07-05 18:27:21 +01:00
Willy-JL
7ffcf97acb
Revert TLSF
2024-06-17 02:41:13 +02:00
Willy-JL
be99dd0e8d
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-06-14 01:26:35 +02:00
MX
ec747892c9
Merge remote-tracking branch 'OFW/dev' into dev [ci skip]
2024-06-13 23:27:27 +03:00
あく
ca8517a1b0
Cli: top ( #3707 )
...
* Cli: top command to replace ps. Furi: ThreadList and thread enumeration routine.
* Sync API Symbols
* Cli: cleanup top output, add memory section. Furi: thread enumeration code cleanup. Fix doxygen and make pvs happy.
* Furi: iterator in thread_list instead of M_EACH, fix memory leak
* Update documentation
* Cli: customizable refres interval for top command
* Furi: add consistentency into float declaration in thread list
* FreeRTOSConfig: remove invalid comment
Co-authored-by: Sergei Gavrilov <who.just.the.doctor@gmail.com >
2024-06-13 18:07:13 +01:00
Willy-JL
4659c68eef
Merge branch 'zlo/tlsf-and-a-temple-of-memcorrupt' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-05-16 21:49:35 +01:00
Willy-JL
54d2763177
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-05-16 21:47:58 +01:00
Sergei Gavrilov
e90dc38e4d
TLSF memory allocator. Less free flash, moar free ram. ( #3572 )
...
* add tlsf as submodule
* libs: tlsf
* Furi: tlsf as allocator
* Furi: heap walker
* shmal fixshesh
* f18: tlsf
* PVS: ignore tlsf
* I like to moving
* merge upcoming changes
* memmgr: alloc aligned, realloc
* Furi: distinct name for auxiliary memory pool
* Furi: put idle and timer thread to mem2
* Furi: fix smal things in allocator
* Furi: remove aligned_free. Use free instead.
* aligned_malloc -> aligned_alloc
* aligned_alloc, parameters order
* aligned_alloc: check that alignment is correct
* unit test: malloc
* unit tests: realloc and test with memory fragmentation
* unit tests: aligned_alloc
* update api
* updater: properly read large update file
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-05-16 19:52:26 +01:00
あく
7c63bf7574
Revert "TLSF memory allocator. Less free flash, moar free ram. ( #3572 )" ( #3651 )
...
* Revert "TLSF memory allocator. Less free flash, moar free ram. (#3572 )"
This reverts commit 1d17206e23 .
* Fix PVS warnings
* github: logging for ticket number checks to stdout
* memgr: removed offending todo
---------
Co-authored-by: hedger <hedger@nanode.su >
2024-05-16 18:43:27 +04:00
MX
0ae78dfcdd
Revert TLSF
...
This reverts commit 5dddb075ac
2024-05-16 05:41:16 +03:00
Sergei Gavrilov
5dddb075ac
TLSF memory allocator. Less free flash, moar free ram. ( #3572 )
...
* add tlsf as submodule
* libs: tlsf
* Furi: tlsf as allocator
* Furi: heap walker
* shmal fixshesh
* f18: tlsf
* PVS: ignore tlsf
* I like to moving
* merge upcoming changes
* memmgr: alloc aligned, realloc
* Furi: distinct name for auxiliary memory pool
* Furi: put idle and timer thread to mem2
* Furi: fix smal things in allocator
* Furi: remove aligned_free. Use free instead.
* aligned_malloc -> aligned_alloc
* aligned_alloc, parameters order
* aligned_alloc: check that alignment is correct
* unit test: malloc
* unit tests: realloc and test with memory fragmentation
* unit tests: aligned_alloc
* update api
* updater: properly read large update file
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-05-16 03:51:45 +03:00
Sergei Gavrilov
1d17206e23
TLSF memory allocator. Less free flash, moar free ram. ( #3572 )
...
* add tlsf as submodule
* libs: tlsf
* Furi: tlsf as allocator
* Furi: heap walker
* shmal fixshesh
* f18: tlsf
* PVS: ignore tlsf
* I like to moving
* merge upcoming changes
* memmgr: alloc aligned, realloc
* Furi: distinct name for auxiliary memory pool
* Furi: put idle and timer thread to mem2
* Furi: fix smal things in allocator
* Furi: remove aligned_free. Use free instead.
* aligned_malloc -> aligned_alloc
* aligned_alloc, parameters order
* aligned_alloc: check that alignment is correct
* unit test: malloc
* unit tests: realloc and test with memory fragmentation
* unit tests: aligned_alloc
* update api
* updater: properly read large update file
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-05-15 16:47:21 +01:00
Willy-JL
d81e72d0a6
Merge branch 'zlo/allocator-playground' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-04-09 22:15:50 +01:00
SG
3a4bff82f4
Furi: distinct name for auxiliary memory pool
2024-04-09 05:12:15 +03:00
SG
d6145356a4
Furi: heap walker
2024-04-04 23:58:54 +03:00
MX
585b7f963d
Api Symbols: replace asserts with checks
...
merge ofw commit
2024-03-25 13:53:32 +03: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
b7220237de
Small bump in the road
...
- Update assets and references for new project
- Revert DFU image and CLI motd
- Remove NSFW text and flag
- Remove credits animation (will be replaced with a setting menu soon)
- New EvilPortal example HTML and better error message
- Initial standalone naming for asset packs and mainmenu apps
- File migration fixes/improvements
- Remove hotfix workflow
2024-03-01 06:11:16 +00:00
MX
9fcf3795ee
Merge branch 'ofw_dev' into blerefactr
2024-02-19 00:46:40 +03:00