Commit Graph
100 Commits
Author SHA1 Message Date
Aleksandr Kutuzov a3e07586ee Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-26 16:29:58 +09:00
あく c924693a84 Ble: fix null-ptr dereference in bt_change_profile (#3110) 2023-09-26 14:09:17 +10:00
Aleksandr Kutuzov 9fd8d30b6f Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-25 17:31:33 +09:00
あく 63d7d46bd3 FuriHal,BleGlue: prevent sleep while HCI command executed, proper bt api rpc locking. Fixes random system lockups. (#3107) 2023-09-25 09:12:12 +04:00
Aleksandr Kutuzov 81e490117a Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-21 23:35:58 +09:00
あく b98631c633 Gui: handle view port lockup and notify developer about it (#3102)
* Gui: handle view port lockup and notify developer about it

* Gui: fix more viewport deadlock cases and add proper notification
2023-09-21 18:34:48 +04:00
338fc3afea New clock switch schema, fixes random core2 crashes (#3008)
* Updated stack to 1.17.0

* hal: ble: Fixed stack config

* Bumped stack version in config

* scripts: added validation of copro stack version in update bundles

* Copro: update to 1.17.2

* FuriHal: adjust tick frequency for HSE as sys clk

* FuriHal: adjust systick reload on sys clock change

* Sync api and format sources

* scripts: updated ob.data for newer stack

* FuriHal: return core2 hse pll transition on deep sleep

* FuriHal: cleanup ble glue

* FuriHal: rework ble glue, allow shci_send in critical section

* FuriHal: sync api symbols

* FuriHal: cleanup BLE glue, remove unused garbage and duplicate declarations

* FuriHal: BLE glue cleanup, 2nd iteration

* FuriHal: hide tick drift reports under FURI_HAL_OS_DEBUG

* Lib: sync stm32wb_copro with latest dev

* FuriHal: ble-glue, slightly less editable device name and duplicate definition cleanup

* FuriHal: update ble config options, enable some optimizations and ext adv

* FuriHal: update clock switch method documentation

* FuriHal: better SNBRSA bug workaround fix

* FuriHal: complete comment about tick skew

* FuriHal: proper condition in clock hsi2hse transition

* FuriHal: move PLL start to hse2pll routine, fix lockup caused by core2 switching to HSE before us

* FuriHal: explicit HSE start before switch

* FuriHal: fix documentation and move flash latency change to later stage, remove duplicate LL_RCC_SetRFWKPClockSource call

---------

Co-authored-by: hedger <hedger@nanode.su>
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-09-19 18:22:21 +04:00
Aleksandr Kutuzov dba34f25fe Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-14 18:35:28 +09:00
Aleksandr Kutuzov 6ceb71e327 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-12 10:21:06 +09:00
Aleksandr Kutuzov 60c96b97c6 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-12 01:36:34 +09:00
Aleksandr Kutuzov ff41b65077 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-12 01:18:41 +09:00
Aleksandr Kutuzov fe637da8fc Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-12 00:40:01 +09:00
Aleksandr Kutuzov baf661d47d Merge remote-tracking branch 'origin/dev' into release-candidate 2023-09-11 22:37:30 +09:00
あく 9f6fc6fe79 Snake: fix deadlock caused by use of view_port_update while locking model (#3063) 2023-09-11 21:08:09 +09:00
あく 1c0276a0be Various Fixes and Improvements (#3059)
* FuriHal: lower MGG display contrast by 4 points
* FuriHal: unify external gpio resources initialization
* Infrared: parse raw in universal TV file, cleanup it with new ifrared script. Other minor changes.
* Gui: fix elements_multiline_text_aligned eating symbols
* Lib: human readable errors in flipper application package
* Special request from marketing team
2023-09-11 16:23:00 +10:00
あくandhedger 7531e18020 Move roadmap link to readme (#3014)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-09-01 06:00:40 +04:00
あくandhedger f218c41d83 Undo some TODO (#3024)
* TODO FL-3497: impossible to fix with current memory allocator

* TODO FL-3497: removed, requires radically different settings approach

* TODO FL-3514: removed, yes we should

* TODO FL-3498: implemented, guarding view port access with mutex.

* TODO FL-3515: removed, questionable but ok

* TODO FL-3510: removed, comment added

* TODO FL-3500: refactored, store pin numbers in GpioPinRecord, fix gpio app crash caused by incorrect gpio_pins traversal.

* Format Sources

* TODO FL-3505: removed, mutex alone is not going to fix issue with WPAN architecture

* TODO FL-3506: removed, change ownership by copy is good

* TODO FL-3519: documentation and link to source added

* Lib: remove unneded total sum from comment in bq27220

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-09-01 05:54:52 +04:00
Aleksandr Kutuzov 0d991e6960 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-08-29 21:19:47 +09:00
あく cf74dd2599 Rfid: fix crash on broken key launch from archive (#3012) 2023-08-25 21:00:00 +04:00
Aleksandr Kutuzov d874fcd5cb Merge remote-tracking branch 'origin/dev' into release-candidate 2023-08-24 05:53:38 +09:00
あくandhedger d808884b97 FuriHal: explicitly pull display pins at early init stage, move PUPD config to early stage (#3004)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-08-23 20:17:39 +04:00
b90e2ca342 SubGhz: add timeout to subghz_hal_async_tx_test_run (#2975)
* SubGhz: add timeout to subghz_hal_async_tx_test_run

* Removed full API from unit_test build config

---------

Co-authored-by: hedger <hedger@nanode.su>
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-08-16 13:16:42 +04:00
Aleksandr Kutuzov 4b5f829375 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-08-11 03:09:30 +09:00
あくandSG 2702c00ba4 Scripts: OB recovery (#2964)
* Scripts: OB recovery
* Scripts: slightly different ob
* Scripts: remove excessive return
* Scripts: simplifying work with registers
* Make PVS happy

Co-authored-by: SG <who.just.the.doctor@gmail.com>
2023-08-10 19:45:17 +10:00
Aleksandr Kutuzov 45e78fbdc2 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-08-03 16:29:04 +09:00
Aleksandr Kutuzov 12f898f0ff Merge remote-tracking branch 'origin/dev' into release-candidate 2023-07-18 15:05:17 +04:00
あく 76e97b8d35 [FL-3051] Gauge initialization routine refactoring, new DataMemory layout, configuration update (#2887)
* FuriHal: refactor power gauge config

* Format sources and move gauge DM load to separate method

* FuriHal: bq27220 refactoring part 1

* Power: use SYSDWN battery status flag for system shutdown

* Libs: bq27220 read DM before write, fix incorrect shift

* FuriHal: cleanup gauge config, add flags, add ptr DM type, update symbols

* FuriHal: 2 stage gauge DM verification and update, better detection routine

* FuriHal: update gauge configuration, lower sleep current and deadband

* FuriHal: gauge and charger health reporting

* Lib: cleanup bq27220 sources

* FuriHal: correct documentation for furi_hal_power_is_shutdown_requested

* FuriHal: proper gauge config for f7
2023-07-18 14:46:38 +04:00
あく b55d97f827 Desktop,Cli: add uptime info (#2874) 2023-07-13 21:02:08 +10:00
あく a4b4802897 Revert "[FL-3420] Storage: directory sort (#2850)" (#2868)
This reverts commit 136114890f.
2023-07-12 21:02:52 +10:00
あく b1e13d44b8 Dolphin: add new animation (#2865) 2023-07-12 12:28:51 +04:00
Aleksandr Kutuzov 279a33dc8c Merge remote-tracking branch 'origin/dev' into release-candidate 2023-07-06 02:01:48 +09:00
あく f3ae09cc16 FuriHal: allow nulling null isr (#2846)
* FuriHal: allow nulling null isr
* FuriHal: include interrupt priority 15 as allowed
* Furi: prevent compiler from optimizing arg in r0 of RESTORE_REGISTERS_AND_HALT_MCU
2023-07-06 01:39:17 +09:00
あく 97fbd84e08 FuriHal, Infrared, Protobuf: various fixes and improvements (#2845)
* Infrared: fix crash caused by null-ptr dereference in interrupt call. FuriHal: callback checks in interrupt handlers. Protobuf: bump to latest.

* DesktopSettings: allow application browser as favourite

* Format sources

* FuriHal: fix pvs warnings
2023-07-05 17:56:52 +04:00
Aleksandr Kutuzov 948dafc434 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-07-02 04:43:52 +09:00
あくandhedger 6d9de25494 Furi,FuriHal: various improvements (#2819)
* Lib: adjust default contrast for ERC displays

* Furi: various improvements in check module

* Format Sources

* FurHal: ble early hardfault detection

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-06-30 13:52:43 +04:00
あく 4ddfe05a59 Debug: sync apps on attach, makes it possible to debug already started app that has crashed (#2778) 2023-06-16 10:48:57 +04:00
Aleksandr Kutuzov 7081d76e7b Merge remote-tracking branch 'origin/dev' into release-candidate 2023-06-15 21:27:44 +09:00
Aleksandr Kutuzov 60baf2a608 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-06-14 20:50:13 +09:00
あく 392bd3cde0 FuriHal: remove clock startup time tracking from clean builds (#2764) 2023-06-13 16:02:12 +04:00
Aleksandr Kutuzov 1ac1f0b441 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-06-09 22:22:59 +09:00
あくandhedger bff5921266 FuriHal: always clock SMPS from HSI (#2643)
* FuriHal: always clock SMPS from HSI

* FuriHal: add clock startup time check, ensure that we conform to core2 config value

* FuriHal: set sleep mode to legacy if clock startup time is too high

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-06-08 17:05:35 +04:00
あくandhedger 61394b8be4 [FL-3352] Dolphin: new animation (#2735)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-06-06 22:04:27 +04:00
あくandhedger b0555d96e9 [FL-3213] f7: add PB9 to debug pins (#2738)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-06-06 21:52:49 +04:00
あくandhedger 76c70bdf2c [FL-3316] Settings: add contrast adjustment (#2737)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-06-06 21:46:01 +04:00
あく 1e512b6add [FL-3293] FuriHal: add system setting to device info, bump device info version (#2736) 2023-06-06 21:15:50 +04:00
Aleksandr Kutuzov dc3d56523a Merge remote-tracking branch 'origin/dev' into release-candidate 2023-06-03 06:03:02 +09:00
あく d9a9fa0c10 FuriHal: disable bus re-initialization on early init and extra asserts for AHB1,AHB2,AHB3 which must be left intact on entering to FUS (#2725) 2023-06-03 00:59:19 +04:00
Aleksandr Kutuzov 2d8f262dd4 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-06-01 21:50:05 +09:00
あく a76c189ca5 [FL-3335] Dolphin: new animation (#2713) 2023-05-30 20:47:28 +09:00
Aleksandr Kutuzov 96d97af4e6 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-05-30 01:48:41 +09:00
3de856f8d5 [FL-3295] FuriHal: add bus abstraction (#2614)
* FuriHal: add bus abstraction and port some subsystem to it
* Make PVS happy, cleanup code
* Update API symbols for f18
* F18: backport bus changes from f7
* Revert to STOP2 sleep mode
* Fix downgrading the firmware via updater
* Port iButton TIM1 to furi_hal_bus
* Port Infrared TIM1 and TIM2 to furi_hal_bus
* Just enable the timer bus
* Port furi_hal_pwm to bus API
* Fix include statement
* Port furi_hal_rfid to bus API
* Port furi_hal_subghz and others to bus API
* Remove unneeded include
* Improve furi_hal_infrared defines
* Reset LPTIM1 via furi_hal_bus API
* Crash when trying to enable an already enabled peripheral
* Better defines
* Improved checks
* Lots of macro wrappers
* Copy spi changes for f18
* Fix crashes in LFRFID system
* Fix crashes in NFC system
* Improve comments
* Create FuriHalBus.md
* Update FuriHalBus.md
* Fix crash when launching updater
* Documentation: couple small fixes in FuriHalBus
* FuriHal: fix copypaste in furi_hal_rfid_tim_reset
* FuriHal: reset radio core related peripherals on restart
* FuriHalBus: is enabled routine and bug fix for uart
* RFID HAL: accomodate furi hal bus

Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com>
Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com>
Co-authored-by: SG <who.just.the.doctor@gmail.com>
2023-05-30 01:05:57 +09:00
あくandSergey Gavrilov 080324f7e0 [FL-3315] Desktop,Rpc: desktop status subscription (#2696)
* Desktop,Rpc: desktop status subscription
* Desktop,RPC: properly handle unsubscribe

Co-authored-by: Sergey Gavrilov <who.just.the.doctor@gmail.com>
2023-05-25 23:22:31 +09:00
あくandhedger 3217f286f0 Services: remove deallocator for persistent services (#2692)
Co-authored-by: hedger <hedger@users.noreply.github.com>
2023-05-23 19:17:12 +04:00
Aleksandr Kutuzov 9cedac9adf Merge remote-tracking branch 'origin/dev' into release-candidate 2023-05-15 20:55:58 +09:00
あく 341cd5e860 [FL-3312] fix PIN retry count reset on reboot (#2671) 2023-05-14 16:04:03 +04:00
Aleksandr Kutuzov 508dbe4984 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-05-11 19:13:36 +09:00
あく aa8a369e2a Rpc: add desktop service. Desktop: refactor locking routine. (#2665)
* Rpc: add desktop service
* Protobuf: sync to latest release. Desktop: rewrite PIN locking, finalize locking API
* Desktop: cleanup code a little bit
2023-05-11 19:50:17 +10:00
f57f0efc48 Debug: revert cortex debug to lxml and drop DWT (#2651)
* Debug: revert cortex debug to lxml

* Debug: update PyCortexMDebug readme

* fbt: moved "debug" dir to "scripts" subfolder

* ufbt: added missing debug_other & debug_other_blackmagic targets; github: fixed script bundling

* lint: fixed formatting on debug scripts

* vscode: updated configuration for debug dir changes

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
2023-05-09 03:31:44 +04:00
あく 914129a0d9 [FL-3289] Various Furi/FuriHal bug fixes and improvements (#2637)
* Furi: properly handle thread free before TCB scrapping, add furi_free - more invasive version of free to memmgr. FuriHal: add DWT comparator api to cortex. Updater, RPC: refactor various thread shanenigans. Code cleanup.
* Rollback free macros and related changes
2023-05-05 21:40:55 +09:00
あく 23c946ef50 Move gauge calibration to separate header, add f18 calibration (#2622) 2023-05-03 06:08:41 +04:00
Aleksandr Kutuzov 849aa0f784 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-04-27 23:01:55 +09:00
あく 408edb3e99 Keep HSI16 working in stop mode. (#2621) 2023-04-27 23:01:13 +09:00
Aleksandr Kutuzov df78ba8e09 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-04-26 15:39:56 +09:00
あく 0ec8fc4c55 FuriHal: use proper divider for core2 when transition to sleep, remove extra stop mode transition checks, cleanup code. Furi: proper assert and check messages. (#2615) 2023-04-26 00:11:42 +04:00
Aleksandr Kutuzov 31e47e97bd Merge remote-tracking branch 'origin/dev' into release-candidate 2023-04-24 16:39:53 +09:00
Aleksandr Kutuzov 085c8008db Merge remote-tracking branch 'origin/dev' into release-candidate 2023-04-20 22:10:24 +09:00
あくandgornekich f68c3b2a65 [FL-3264] Various stop mode fixes (#2584)
* BleGlue: log hci_cmd_resp invocation
* BleGlue: increase BleHciDriver stack size
* ble hid app: increase stack
* ble: comment unnecessary hci reset
* BleGlue: stricter checks in communication with core2, cleanup code
* Furi: enter insomnia when executing from RAM
---------
Co-authored-by: gornekich <n.gorbadey@gmail.com>
2023-04-18 21:38:35 +10:00
あく 5d7bdca835 FuriHal: pwr pulls for some pins (#2579) 2023-04-12 21:45:13 +10:00
Aleksandr Kutuzov 728320b713 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-04-12 15:12:01 +09:00
Aleksandr Kutuzov b55677673f Merge remote-tracking branch 'origin/dev' into release-candidate 2023-04-07 11:05:52 +08:00
あく 0d8518d31d [FL-3232] FuriHal: fix gpio naming and add explicit pulls for vibro, speaker and ir_tx (#2565)
* FuriHal: fix gpio naming and add explicit pulls for vibro, speaker and ir_tx
* Github: workflow event debug print
* Github: proper PR head commit SHA extraction in get_env.py
2023-04-06 19:06:19 +10:00
あくandSergey Gavrilov 2a26680acb Furi: more gpio checks in HAL (#2549)
* Furi: more gpio checks in HAL
* Nfc: do not spawn service thread if it is already spawned

Co-authored-by: Sergey Gavrilov <who.just.the.doctor@gmail.com>
2023-04-06 10:19:39 +08:00
Aleksandr Kutuzov 9b9dce3676 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-03-27 16:42:32 +09:00
Aleksandr Kutuzov e52e30c56d Merge remote-tracking branch 'origin/dev' into release-candidate 2023-03-23 05:27:22 +09:00
あく 7bf0a4786c [FL-3152] Screen streaming improvements (#2498)
* Rpc: reserve some bandwidth when screen streaming
* Move furi_hal_compress to toolbox/comporess
* Lib: heatshrink as external submodule, compile warnings fixes, better buffer management
* Lib: cleanup compressor definitions
* Rpc: add canvas orientation support
* Format Sources
2023-03-23 03:00:48 +10:00
あく 973287b09b Github: wipe workspace before checkout (#2527)
* Github: wipe workspace before checkout

* Github: allow find to fail

* Github: limit maxdepth for find
2023-03-22 15:26:40 +04:00
あく acc32f66e8 Github: force cleanup tree on decontaminate (#2526) 2023-03-22 14:48:41 +04:00
あく fd8607398d Github: unshallow on decontamination (#2521)
* Github: unshallow on decontamination
* Github: fix syntax
* Github: decontaminate without full tree
* Github: update decontaminate action in all workflows
2023-03-21 13:55:20 +04:00
あく ccaa3864d5 Dolphin: new spring animation, weight adjust, drop winter animation. (#2489)
* Dolphin: add new spring animation, drop winter animation, adjust weights
* Readme: update application folder structure info
2023-03-15 01:02:27 +10:00
Aleksandr Kutuzov f141a67788 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-03-10 20:15:19 +09:00
あく 4bd3dca16f Fbt: fix broken resource deployment (#2477) 2023-03-10 20:13:11 +09:00
Aleksandr Kutuzov dec00feb7b Merge remote-tracking branch 'origin/dev' into release-candidate 2023-03-10 18:26:49 +09:00
Aleksandr Kutuzov 119c7fe5f1 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-02-27 23:59:52 +09:00
あく e6d1bcc421 Plugins: move to designated categories (#2438) 2023-02-27 23:33:45 +10:00
Aleksandr Kutuzov e9984f8b4c Merge branch 'dev' into release-candidate 2023-02-27 15:25:21 +09:00
あく 478390de19 Drivers: remove excessive check in bq25896 and make PVS happy (#2436) 2023-02-27 04:06:19 +10:00
あく b054912167 F8, F18: bump API symbols version (#2435) 2023-02-27 03:39:26 +10:00
あく 1d55aee39c Fix incorrect type choise condition in image compressor (#2434) 2023-02-27 02:29:42 +10:00
あく 3efb7d4050 Updater: handle storage errors when removing files, fix folder remove routine, prevent unused services from starting (#2432)
* Updater: handle storage errors when removing files
* Updater: properly handle folder removal in post update cleanup stage. Prevent power, desktop and dolphin services from starting on update.
* Desktop, Dolphin, Power: proper handling and message for special boot mode.
* Desktop, Power: add missing TAG
* Updater: unify start skip message and fix double delete in backup worker
* Cli: unify special boot mode message
2023-02-27 00:15:26 +09:00
あく 25e8947282 Dolphin: drop holiday animation (#2398) 2023-02-15 20:05:08 +10:00
Aleksandr Kutuzov e2e4dcc2f8 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-02-14 00:44:31 +09:00
Aleksandr Kutuzov ea5fe0ec86 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-02-09 14:45:49 +09:00
Aleksandr Kutuzov 8a08fd5da9 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-02-09 14:10:01 +09:00
あく cee9b640b3 Update Missing SD Card icon from PR 2373 (#2376) 2023-02-08 15:45:33 +04:00
あく 20f98050f2 Github: disable f18 build (#2375) 2023-02-08 13:38:09 +03:00
あく 1eda913367 [FL-3075] Pin Reset (#2367)
* Nfc: fix PVS warnings
* Factory reset combo, initial version
* Recovery screen and correct input pin initialization
* Better pin and factory reset message
* Down to cancel factory reset
2023-02-08 01:35:49 +10:00
あく 52680fd14e FreeRTOS: update to 10.5.1 (#2353) 2023-02-04 04:09:20 +10:00
Aleksandr Kutuzov 48eb15c79c Merge remote-tracking branch 'origin/dev' into release-candidate 2023-01-30 16:57:20 +07:00
あく 8d2143add5 Fix various issues reported on github (#2280)
* Desktop: Fix use after free in slideshow view
* Gui: long press toggles first letter case too
* Desktop: remove debug logging
2023-01-10 03:15:03 +09:00
Aleksandr Kutuzov e18056ba78 Merge remote-tracking branch 'origin/dev' into release-candidate 2023-01-08 20:19:22 +09:00