Stricter constness for const data (#4126)

* libs: stricter constness for saving RAM with .rodata section; fbt: sdk: fixed signature generation for nested const params

* hal: additional fixes for constness in USB subsystem

* debug apps: additional usb-related fixes

* mjs: more consts for token parser

* fatfs: const driver struct

* hal: more consts for ble & nfc vars

* hal: made FuriHalSpiBusHandle static

* hal: made FuriHalI2cBusHandle static

* usb: restored previous api

* linter fixes

* API fixes
This commit is contained in:
hedger
2025-03-31 16:23:32 +01:00
committed by GitHub
parent 3bd6ee03ef
commit 5fcaef25b0
68 changed files with 594 additions and 531 deletions

View File

@@ -46,7 +46,7 @@ static void ble_profile_serial_stop(FuriHalBleProfileBase* profile) {
// Up to 45 ms
#define CONNECTION_INTERVAL_MAX (0x24)
static GapConfig serial_template_config = {
static const GapConfig serial_template_config = {
.adv_service_uuid = 0x3080,
.appearance_char = 0x8600,
.bonding_mode = true,
@@ -80,7 +80,7 @@ static const FuriHalBleProfileTemplate profile_callbacks = {
.get_gap_config = ble_profile_serial_get_config,
};
const FuriHalBleProfileTemplate* ble_profile_serial = &profile_callbacks;
const FuriHalBleProfileTemplate* const ble_profile_serial = &profile_callbacks;
void ble_profile_serial_set_event_callback(
FuriHalBleProfileBase* profile,