あく
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
Filipe Paz Rodrigues
4308a5e377
CCID: Support PC To Reader Transfer Block data ( #3126 )
...
* CCID: Support PC To Reader Transfer Block data
* Format sources
Co-authored-by: あく <alleteam@gmail.com>
2023-10-10 03:48:37 +09:00
あく
65a56cdb4a
Firmware: bigger thread name storage. Notification app: better BacklightEnforce edge cases handling. ( #3137 )
2023-10-09 21:55:38 +04:00
あく
fbded1e4ee
Lib: update stm32wb_copro to 1.17.3 release ( #3119 )
...
* Lib: update stm32wb_copro to 1.17.3 release
* Bump copro versions
* Lib: switch stm32_copro to release
2023-10-09 22:03:27 +09:00
hedger
4ae9a02efa
FuriHal ble: length fix for fw version prop ( #3136 )
...
* hal ble: length fix for fw version prop
* hal ble: dev_info char: setting data after setup is done
* api: storage: enabled storage_file_sync
2023-10-09 21:53:20 +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
Filipe Paz Rodrigues
a089aeb2bd
Add Initial CCID support ( #3048 )
...
* Add Initial CCID support
* Sync api symbols
* Format sources
Co-authored-by: あく <alleteam@gmail.com>
2023-09-21 18:09:00 +09:00
agarof
f46018b204
Add extended I2C HAL functions ( #3037 )
...
* Add extended I2C HAL functions
* Rename I2CEndClockStretch to I2CEndAwaitRestart
* Address review comments
* Update f18 api_symbols.csv
* FuriHal: check input values in cortex timer
* FuriHal: cleanup I2C documentation
* Properly bump api symbols
* FuriHal: fix incorrect cast in I2C write_reg methods, fix spelling and naming
* FuriHal: cleanup const usage in I2C, sync declaration and implementation
* Format Sources
* FuriHal: more i2c docs
* Add I2C Restart and Pause / Resume test
* Add I2C auto-reload test
* UnitTests: skip furi_hal_i2c_ext_eeprom if eeprom is not connected
* UnitTest: cleanup subghz test output
* FuriHal: classic timeouts in i2c
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2023-09-21 16:54:25 +09: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
Skorpionm
25af13e998
SubGhz: Fix CLI subghz chat ( #3073 )
...
Co-authored-by: あく <alleteam@gmail.com>
2023-09-14 18:27:01 +09:00
Max Andreev
ac892f3d03
Fix DMA SPI memory increment define ( #3075 )
2023-09-14 18:15:20 +09: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
あく
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
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
Max
52b5966262
Add File Naming setting for more detailed naming ( #3002 )
...
* added filename mode setting
* added furi_flag checks for when filename_mode is set
* changed naming for ibutton, lfrfid and subghz
* requested changes from PR
* Lib: gather all naming bits and pieces under name generator module. Properly bump api version. FuriHal: fix RTC flag enum.
* PR requested changes
* bug fix for arg type
* added functionality for other application scenes
* Lib: cleanup name generator API, simplify usage. Sync API symbols.
* Lib: proper size type in name_generator. Cleanup.
* FuriHal: cleanup rtc api usage across firmware
Co-authored-by: あく <alleteam@gmail.com>
2023-09-01 14:57:49 +09:00
あく
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
gornekich
5eb045e25f
nfc: add rfal wrong state error handling ( #3017 )
2023-08-29 13:31:40 +09:00
Skorpionm
940ec36a0b
SubGhz: fix todo ( #2984 )
...
* [FL-3501] SubGhz: fix Handle multiple external cc1101 modules
* [FL-3502] SubGhz: fix Protocol not found error message
* [FL-3503] SubGhz: fix Handle rx buffer overflow
* {FL-3520] SubGhz: Handle RX buffer overflow with external cc1101
* [FL-3548] SubGhz: Security+ 2.0 counter start value
* [FL-3552] Sub-GHz: Check saved file
* [FL-3555] [FL-3554] Sub-GHz: RX buffer overflow handling and check that buffer has been properly written
* [FL-3557] Sub-GHz: No optimization required
* [FL-3558] Sub-GHz: Keeloq 0 discriminator
* [FL-3559] Sub-GHz: Keeloq unknown learning
* [FL-3560] Sub-GHz: callback for updating keeloq data on display
* SubGhz: fix RXFIFO_OVERFLOW
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-08-24 04:51:32 +09:00
Astra
60182aa2cd
[FL-3564] New IR universal remote graphics ( #3006 )
...
* New IR universal remote layout
* Remove redundant checks
Co-authored-by: あく <alleteam@gmail.com>
2023-08-24 03:24:47 +09:00
あく
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
hedger
ace0901125
[FL-3486,FL-3392] fbt: various improvements and bug fixes ( #2982 )
...
* fbt: extapps: compact debug format for .faps
* fbt: sdk: fixed symbol cache regen logic for removed-only symbols
* lib: elf_file: early .fap file handle release
* fbt: extapps: added FAP_VERSION define for application environments
* github: added appsymbols artifact
* api: updates for f18
* github: fixed early fap_dist
* fbt: added flash_dap
* ufbt: added flash_dap
* fbt: reworked flash target; scripts: program.py->fwflash.py and changes
* vscode: updated configuration
* scripts: fwflash.py: ugly fixes for ufbt
* scripts: fwflash.py: cleanup
* fbt: flash: always use .elf file
* scripts: fwflash: fixed elf file path
Co-authored-by: あく <alleteam@gmail.com>
2023-08-23 03:33:10 +09: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
MMX
f75fcd4e34
UI: Clock on Desktop ( #2891 )
...
* Clock on desktop
* Gui: gui_active_view_port_count
* Gui: move gui_active_view_port_count to private header, update docs
* Desktop: simplify desktop clock code
* Desktop: refactor clock
* Desktop: optimize clock code
* Desktop: 3rd cleanup round
* Desktop: 4th cleanup round, missing bits and pieces
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2023-08-11 01:10:15 +09:00
あく
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
twisted-pear
c976ff11bf
Expose additional functions of the crypto engine to user ( #2923 )
...
* Allow loading user supplied keys and add CTR mode
* Add GCM mode to furi_hal_crypto
* Split up CTR and GCM code, add flag for adv crypto
* Add convenience functions for GCM crypto
* Run fbt format
* Update GCM to support additional auth data
* Update APIs
* FuriHal: update crypto documentation, method names and usage
* Clean up code for key (un)loading, GCM and CTR
- get rid of goto
- do not use furi_hal_bt_is_alive() when not using secure enclave
- give defines a type and wrap in ()
* Add unit test for CTR and GCM crypto
* FuriHal: const in crypto unit tests, cortex timer for crypto operations timeouts
* FuriHal: update crypto docs
Co-authored-by: twisted_pear <twstd@posteo.net>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2023-08-10 17:44:46 +09:00
Astra
a39ef50fdb
[FL-3433] Add compressor.h to the SDK ( #2962 )
2023-08-09 16:52:41 +09:00
Dzhos Oleksii
68eb1ecebb
[FL-3385] New RTC flags in device info ( #2884 )
...
* Add new rtc flags to device info
* FuriHal: bump info version
* Fix local
* Rework device info by hierarchy filtering
Co-authored-by: あく <alleteam@gmail.com>
2023-08-01 17:20:30 +09: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
hedger
20f6394ad8
[FL-3431] Radio headers in SDK ( #2881 )
2023-07-17 11:51:15 +04:00
Skorpionm
25ec09c7eb
SubGhz: fix check connect cc1101_ext ( #2857 )
...
* SubGhz: fix check connect cc1101_ext
* SubGhz: fix syntax
* SubGhz: enable interface pin pullups
* SubGhz: fix syntax
* SubGhz: fix CLI check connect CC1101_ext
* SubGhz: fix CLI display of the selected device
Co-authored-by: あく <alleteam@gmail.com>
2023-07-12 13:41:46 +04:00
Astra
8bccfd6fd8
[FL-3363] More descriptive error messages for the log command ( #2835 )
...
* More descriptive error messages for the log command
* Log level description improvements
* Log help changes
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-07-11 15:41:16 +04:00
Sergey Gavrilov
9b2d80d6b7
[FL-3400] External menu apps ( #2849 )
...
* FBT, applications: add MENUEXTERNAL app type
* FBT, uFBT: build MENUEXTERNAL as EXTERNAL app
* Loader menu: show external menu apps
* LFRFID: move to sd card
* FBT: always build External Applications list
* Archive: look for external apps path
* Infrared: move to sd card
* Apps: add "start" apps
* iButton: move to sd card
* BadUSB: move to sd card
* External apps: update icons
* GPIO: move to sd card
* Loader: look for external apps path
* U2F: move to sd
* SubGHz: move to sd
* Apps: "on_start" metapackage
* NFC: move to sd
* Sync f7 and f18
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-07-10 12:03:41 +04:00
Astra
0195f8bf00
[FL-3350] Device Info update ( #2840 )
...
* Update F18 version info
* Certification info for F18
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-07-10 10:48:00 +04:00
Skorpionm
cef59887ed
[FL-3401, FL-3402] SubGhz: add "SubGhz test" external application and the ability to work "SubGhz" as an external application ( #2851 )
...
* [FL-3401] SubGhz: add "SubGhz test" external application
* SubGhz: delete test test functionality from SubGhz app
* [FL-3402] SubGhz: move func protocol creation API
Co-authored-by: あく <alleteam@gmail.com>
2023-07-07 00:15:03 +09:00
Sergey Gavrilov
d8500510be
API: explicitly add math.h ( #2852 )
...
* API: explicitly add math.h
* sync target api versions
2023-07-06 15:49:53 +04:00
Skorpionm
906cca8f24
Furi_Power: fix furi_hal_power_enable_otg ( #2842 )
...
* Furi_Power: fix furi_hal_power_enable_otg
* SubGhz: fix error output connected USB
* Furi_Hal: fix target F18
* Fix api_symbols.csv version for F7
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-07-06 01:48:02 +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
Skorpionm
8c93695d01
[FL-3375] SubGhz: add CC1101 module external ( #2747 )
...
* SubGhz: add CC1101 Ext driver
* SubGhz: move TIM2 -> TIM17 use cc1101_ext
* FuriHal: SPI move channel DMA 3,4 -> 6.7
* Documentation: fix font
* SubGhz: add work with SubGhz devices by link to device
* SubGhz: add support switching external/internal cc1101 "subghz chat"
* SubGhz: add support switching external/internal cc1101 "subghz tx" and "subghz rx"
* SubGhz: add "Radio Settings" scene
* SubGhz: add icon
* SubGhz: add supported CC1101 external module in SubGhz app
* SubGhz: fix check frequency supported radio device
* SubGhz: fix clang-formatted
* Sughz: move dirver CC1101_Ext to lib , compile cmd ./fbt launch_app APPSRC=radio_device_cc1101_ext
* SubGhz: fix CLI
* SubGhz: fix PVS
* SubGhz: delete comments
* SubGhz: fix unit_test
* Format sources
* Update api symbols and drivers targets
* Drivers: find proper place for target option
* SubGhz: external device connected method naming
* Format sources
* SubGhz: fix module selection menu, when external is not connected
* SubGhz: fix furi_assert(device);
* SubGhz: fix split h and c
* SubGhz: furi_hal_subghz remove preset load function by name
* SubGhz: deleted comments
* Format Sources
* SubGhz: add some consts and fix unit tests
* Sync API Symbols
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-06-30 23:03:36 +09:00
あく
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
Sergey Gavrilov
95c1585df6
[FL-3211][FL-3212] Debug apps: speaker, uart_echo with baudrate ( #2812 )
...
* Music player: move music_worker to library
* Music player: drop cli
* Debug: speaker debug app
* Debug: baudrate arg in uart_echo app
* Libs: add music_worker to api
* Libs: add music_worker to targets linker_dependencies
Co-authored-by: あく <alleteam@gmail.com>
2023-06-29 20:23:04 +09:00
MMX
ee96e34767
Fix furi_hal_bus related crashes in plugins ( #2799 )
...
* Fix furi_hal_bus issues in plugins
* Rework pwm is running check
* ApiSymbols: update and sync targets
Co-authored-by: あく <alleteam@gmail.com>
2023-06-28 18:25:07 +09:00
Skorpionm
e52fdcf109
[FL-3388] NFC/RFID detector ( #2795 )
...
* Field_Validation: add driver fild_validation_rfid
* Field_Validation: add fild_validation_nfc
* Field_Presence: added field validation functions to furi_hal_nfc
* Field_Presence: added field validation functions to furi_hal_rfid
* Field_Presence: add "NFC/RFID detector" app
* Field_Presence: fix GUI "NFC/RFID detector"
* NFC/RFID detector: add auto turn on backlight when field is detected
* NFC/RFID detector: fix syntax errors
* ApiSymbols: fix incorrect name
* FuriHal: filed detect naming
* FieldDetector: fix grammar
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-06-28 18:05:48 +09:00
Sergey Gavrilov
645a7c5989
[FL-3386] Fast FAP Loader ( #2790 )
...
* FBT: build and add FastFAP(tm) sections
* Elf file: fast loading fap files. Really fast, like x15 times faster.
* fastfap.py: cleanup unused imports
* Toolchain: 23 version
* Elf File: remove log messages
* Scripts: fix file permissions
* FBT: explicit interpreter for fastfap invocation
Co-authored-by: あく <alleteam@gmail.com>
2023-06-28 17:19:10 +09:00
Sergey Gavrilov
761a14e6e2
[FL-2837][FL-3270] Loader refaptoring: second encounter ( #2779 )
...
* Core: rename internal FlipperApplication to FlipperInternalApplication
* FAP Loader: move load_name_and_icon to flipper_application library
* Loader menu: rework api
* View holder: move to gui service
* Loader: simple "loading" worker
* Loader: applications dialog
* Loader: fapping
* Update f18 api
* Apps: remove fap_loader
* Libs, flipper application: store args, rename thread allocation
* Loader: error handling
* Apps: use loader error handling
* Loader: documentation
* FBT: accomodate loader
* Loader: do not raise gui error if loader is locked
* Archive: accomodate loader
* Loader: fix loading message
* Flipper: drop some old dolphin legacy
* Loader: generalize error construction
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-06-23 21:01:40 +09:00
hedger
5334a0ab92
[FL-3376] Fixed GATT attribute order ( #2776 )
...
* hal: gatt: swapped rx/tx serial chars order
* hal: gatt: reordered HID attrs to maintain previous order
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-06-15 21:24:47 +09:00
Leopold
b6dbf25f85
furi_hal_nfc: fix rfalTransceiveBitsBlockingTx's 4th argument to bits count rather than bytes count ( #2773 )
2023-06-14 19:49:26 +09:00
あく
392bd3cde0
FuriHal: remove clock startup time tracking from clean builds ( #2764 )
2023-06-13 16:02:12 +04:00
Astra
4900e8b7a2
[FL-3284] Fix reading Mifare Classic cards with unusual access conditions and fix emulation of unknown keys ( #2620 )
...
* I was outplayed by the C programming language
* Fix emulating empty keys as 0s
* Add exceptions for Detect Reader
* Sync api_symbols.csv for F18
* Outplayed by the C language [X2]
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-06-09 21:41:40 +09:00
Sergey Gavrilov
0e4344a83c
Services: simplify api ( #2540 )
...
Co-authored-by: あく <alleteam@gmail.com>
2023-06-09 20:02:47 +09:00