Commit Graph

78 Commits

Author SHA1 Message Date
ClaraCrazy
857fa406d8 Step into the light 1.15 stack. Your time has cometh 2023-06-23 03:18:33 +02:00
Willy-JL
a4c0823abd Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-06-16 20:48:35 +01:00
MX
491e368535 Merge branch 'ofw-dev' into dev 2023-06-16 20:41:47 +03: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
MX
8bb3092002 Revert BLE gatt characteristics refactoring temporarily 2023-06-14 03:19:18 +03:00
Willy-JL
c4850ba89a Revert gatt refactor for now (breaks iOS BT HID) 2023-06-13 18:36:55 +01:00
Willy-JL
cb97cbbb27 Fix for 1.13.3 stack 2023-06-09 01:29:39 +01:00
Willy-JL
db0dc7064a Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-06-09 01:27:24 +01:00
MX
f4cc929a99 Fix descriptor 2023-06-09 00:53:16 +03:00
MX
d8ae931b7c Fix led descriptor? 2023-06-08 23:21:22 +03:00
MX
18220515b5 Merge branch 'ofw-dev' into dev 2023-06-08 14:58:46 +03:00
hedger
e3e64e5e83 [FL-3267] ble: refactored bt gatt characteristics setup (#2587)
* ble: refactored bt gatt characteristics setup
* ble: naming fixes, small optimizations
* ble: expanded bitfields; fixed pvs warnings
* ble: fixed pvs warnings for real
* ble: using FlipperGattCharacteristicDataPropsFixed for char[] props
* ble: removed flipper_gatt_characteristic_props_const_char
* ble: gatt: naming changes
* ble: gatt: fixed device_info service constant attrs sizes
* ble: gatt: copy descriptors to char instances; reworked hid chars to be callback-based; moved max size getter to callback with NULL data; added comments
* ble: gatt: removed hid_svc_report_data_callback
* ble: hid svc: better double loop idx naming
* ble: hid svc: simplified hid_svc_update_info
* ble: gatt: removed magic values; fixed type for HidSvcGattCharacteristicInfo
* ble: gatt: moved long uuids to separate files

Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
2023-06-08 18:42:02 +09:00
Willy-JL
6326b7ff1f Revert "Upgrade radio stack to 1.15.0"
This reverts commit a526eee458.
2023-06-03 02:43:46 +01:00
Willy-JL
a526eee458 Upgrade radio stack to 1.15.0 2023-06-03 00:31:14 +01:00
Willy-JL
df8b7cbe48 Random cleanup and housekeeping 2023-06-01 01:46:19 +01:00
Willy-JL
0657aebf52 Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-05-14 19:46:20 +01:00
MX
849f14e480 Bad BT plugin, Submenu locked elements, API updates, etc.
Thanks to WillyJL, ClaraCrazy, and XFW contributors
2023-05-13 00:14:22 +03:00
MX
b2e55d7d84 Merge branch 'ofw-dev' into dev
:(
2023-05-11 17:47:14 +03:00
Willy-JL
782e91c6e2 Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
Oh thank you OFW for your immense wisdom of shuffling code FOR NO REASON
Was it so difficult to add A SINGLE BOOL to lock with PIN or not?????
2023-05-11 15:35:27 +01:00
hedger
9914aa40bd [FL-3302] Part 2 of hooking C2 IPC (#2662) 2023-05-11 11:25:06 +09:00
Willy-JL
ee0212d05d Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev 2023-05-10 15:59:20 +01:00
MX
face4bd3c7 Merge branch 'fz-dev' into dev 2023-05-09 18:28:46 +03:00
hedger
eebc6241b7 [FL-3302] ble: attempt to handle hardfaulted c2 (#2653)
* ble: attempt to handle hardfaulted c2
* MfKey32: nicer macros
* FuriHal: slightly different core2 hardfault message
* Update ReadMe

Co-authored-by: あく <alleteam@gmail.com>
2023-05-09 13:06:44 +09:00
Willy-JL
bbddb2ac8e Merge branch 'ul-dev' into xfw-dev 2023-04-28 21:43:56 +01:00
MX
96375e8244 Version instead of branch 2023-04-28 14:00:40 +03: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
Willy-JL
83afd16746 Revert cubewb update 2023-04-25 13:00:40 +01:00
hedger
1ef70c0bb4 [FL-3280] cubewb: downgraded to v1.15.0 (#2605)
* cubewb: downgraded to v1.15.0
* hal: updated f18 symbols to match LL
* hal: flash: use furi_hal_cortex_timer for timeouts
* scripts: fixed cube version validation from config file
* hal: flash: added 3 seconds timeout when waiting for C2 to unlock flash controller. On timeout, triggers furi_check
* nfc: fixed missing interrupt setup on multiple platformSetIrqCallback() invocations
* hal: gpio: don't trigger furi_check on furi_hal_gpio_add_int_callback() with same parameters
* Reverted NFC fixes - will be in a separate PR
* scripts: storage: fixed exception handler for paths
2023-04-24 16:19:36 +09:00
Willy-JL
a5cddc076e Merge branch 'ul-dev' into xfw-dev 2023-04-23 17:48:05 +01:00
hedger
3561f79cf4 cubewb: downgraded to v1.15.0 2023-04-22 20:42:27 +03:00
hedger
4d015a1106 [FL-3271] cubewb: updated to v1.16.0 (#2595)
* cubewb: updated project to v1.16.0
* hal: updated api_symbols for f18
* FuriHal: add missing enterprise sleep and insomnia
* FuriHal: slightly more paranoic sleep mode

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-04-20 21:57:51 +09:00
あく
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
Georgii Surkov
37fb330b36 [FL-3226] Deep Sleep Idle (#2569)
* Improve RNG error handling
* Sync RTC shadow registers on Stop mode exit
* Implement working STOP2 mode
* Fix formatting
* FuriHal: disable SWD pins if debug is disabled
* Power: cleanup battery info view, handle zero current report from gauge
* Fbt: add command line argument for extra global defines
* FuriHal: cleanup debug defines in power and os, drop deep_insomnia counter.
* Add a setting to disable deep sleep
* Clean up furi_hal_power
* FuriHal,FapLoader,Debug: implement debug in stop mode, workaround resume in stop
* FuriHal: document OS and power subsystems debugging
* Furi: enable debug interface on crash

---------

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2023-04-14 00:47:38 +10:00
yocvito
48641ef6f6 Adds bonding toggle in badkb, allowing to remember paired devices, but MAC address cannot be modified in this state (V1) 2023-02-28 19:27:15 +01:00
yocvito
637918f0ac Reverse MAC address in DEBUG logs 2023-02-15 14:27:23 +01:00
Willy-JL
0ff5164d99 Format (and thanks nano for the big folder fix <3) 2023-02-12 21:11:00 +00:00
yocvito
c9941d44a7 removes useless commented function 2023-02-11 22:14:11 +01:00
yocvito
999c609773 Handle write request on HID keyboard led state characteristic and respond to it (should fix numlock issue) 2023-02-11 22:01:02 +01:00
yocvito
f5219db3fc Adds LED state report characteristic into bt GATT hid service (for now writing by host isn't working) 2023-02-10 20:04:45 +01:00
Willy-JL
72935579e6 Format 2023-02-03 17:46:32 +00:00
yocvito
f384872449 BLE GAP: specifies Keyboard yes/no IO capability for GapPairingNone case during gap init, in case 'Just works' pairing method is not accepted by remote host 2023-01-30 22:01:38 +01:00
yocvito
fb1218c9a5 Removes pin verif when using BT for bad-USB 2023-01-30 13:31:24 +01:00
yocvito
75a01459f5 some fix + api_symbols correct export 2023-01-27 19:37:49 +01:00
yocvito
a6daa2a20d drop useless file and some useless line 2023-01-27 11:56:29 +01:00
yocvito
a88053964e Bluetooth timeout is now dynamic thanks to rssi analyzing 2023-01-26 22:54:15 +01:00
yocvito
df4d512f7d Adds BLE adv name & mac changing effective 2023-01-25 19:00:41 +01:00
yocvito
202596ad38 add buggy extra config UI for bad usb (for implementing BLE and UART) 2023-01-01 02:17:40 +01:00
Georgii Surkov
8582670a34 [FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com>
Co-authored-by: gornekich <n.gorbadey@gmail.com>
2022-12-26 21:13:30 +09:00
Sergey Gavrilov
c511c67e71 Core: thread allocation shortcut (#2007)
* Core: thread alloc+set shortcut
* Apps: use thread allocation shortcut
* Mark some service threads as services
* Init BT as soon as possible

Co-authored-by: あく <alleteam@gmail.com>
2022-11-23 21:49:17 +09:00
あく
e8913f2e33 Code cleanup: srand, PVS warnings (#1974)
* Remove srand invocation

* PVS High priority fixes

* PVS High errors part 2

* Furi: heap tracing inheritance

* Furi add __builtin_unreachable to furi_thread_catch
2022-11-05 18:07:24 +03:00