mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
hal: more consts for ble & nfc vars
This commit is contained in:
@@ -2935,7 +2935,7 @@ Variable,+,_impure_ptr,_reent*,
|
||||
Variable,-,_sys_errlist,const char* const[],
|
||||
Variable,-,_sys_nerr,int,
|
||||
Variable,-,ble_profile_hid,const FuriHalBleProfileTemplate*,
|
||||
Variable,-,ble_profile_serial,const FuriHalBleProfileTemplate*,
|
||||
Variable,+,ble_profile_serial,const FuriHalBleProfileTemplate* const,
|
||||
Variable,+,cli_vcp,const CliSession,
|
||||
Variable,+,compress_config_heatshrink_default,const CompressConfigHeatshrink,
|
||||
Variable,+,firmware_api_interface,const ElfApiInterface* const,
|
||||
|
||||
|
@@ -3786,7 +3786,7 @@ Variable,+,_impure_ptr,_reent*,
|
||||
Variable,-,_sys_errlist,const char* const[],
|
||||
Variable,-,_sys_nerr,int,
|
||||
Variable,-,ble_profile_hid,const FuriHalBleProfileTemplate*,
|
||||
Variable,-,ble_profile_serial,const FuriHalBleProfileTemplate*,
|
||||
Variable,+,ble_profile_serial,const FuriHalBleProfileTemplate* const,
|
||||
Variable,+,cli_vcp,const CliSession,
|
||||
Variable,+,compress_config_heatshrink_default,const CompressConfigHeatshrink,
|
||||
Variable,+,firmware_api_interface,const ElfApiInterface* const,
|
||||
|
||||
|
@@ -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,
|
||||
|
||||
@@ -19,7 +19,7 @@ typedef enum {
|
||||
typedef SerialServiceEventCallback FuriHalBtSerialCallback;
|
||||
|
||||
/** Serial profile descriptor */
|
||||
extern const FuriHalBleProfileTemplate* ble_profile_serial;
|
||||
extern const FuriHalBleProfileTemplate* const ble_profile_serial;
|
||||
|
||||
/** Send data through BLE
|
||||
*
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#define TAG "FuriHalNfc"
|
||||
|
||||
const FuriHalNfcTechBase* furi_hal_nfc_tech[FuriHalNfcTechNum] = {
|
||||
const FuriHalNfcTechBase* const furi_hal_nfc_tech[FuriHalNfcTechNum] = {
|
||||
[FuriHalNfcTechIso14443a] = &furi_hal_nfc_iso14443a,
|
||||
[FuriHalNfcTechIso14443b] = &furi_hal_nfc_iso14443b,
|
||||
[FuriHalNfcTechIso15693] = &furi_hal_nfc_iso15693,
|
||||
|
||||
@@ -160,7 +160,7 @@ extern const FuriHalNfcTechBase furi_hal_nfc_felica;
|
||||
* This variable is defined in furi_hal_nfc.c. It will need to be modified
|
||||
* in case when a new technology is to be added.
|
||||
*/
|
||||
extern const FuriHalNfcTechBase* furi_hal_nfc_tech[];
|
||||
extern const FuriHalNfcTechBase* const furi_hal_nfc_tech[];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user