Api Symbols: replace asserts with checks

merge ofw commit
This commit is contained in:
MX
2024-03-25 13:53:32 +03:00
parent 81a16e5a28
commit 585b7f963d
565 changed files with 3544 additions and 2691 deletions

View File

@@ -55,103 +55,103 @@ typedef enum {
/** Init flipper version
*/
void furi_hal_version_init();
void furi_hal_version_init(void);
/** Check target firmware version
*
* @return true if target and real matches
*/
bool furi_hal_version_do_i_belong_here();
bool furi_hal_version_do_i_belong_here(void);
/** Get model name
*
* @return model name C-string
*/
const char* furi_hal_version_get_model_name();
const char* furi_hal_version_get_model_name(void);
/** Get model name
*
* @return model code C-string
*/
const char* furi_hal_version_get_model_code();
const char* furi_hal_version_get_model_code(void);
/** Get FCC ID
*
* @return FCC id as C-string
*/
const char* furi_hal_version_get_fcc_id();
const char* furi_hal_version_get_fcc_id(void);
/** Get IC id
*
* @return IC id as C-string
*/
const char* furi_hal_version_get_ic_id();
const char* furi_hal_version_get_ic_id(void);
/** Get MIC id
*
* @return MIC id as C-string
*/
const char* furi_hal_version_get_mic_id();
const char* furi_hal_version_get_mic_id(void);
/** Get SRRC id
*
* @return SRRC id as C-string
*/
const char* furi_hal_version_get_srrc_id();
const char* furi_hal_version_get_srrc_id(void);
/** Get NCC id
*
* @return NCC id as C-string
*/
const char* furi_hal_version_get_ncc_id();
const char* furi_hal_version_get_ncc_id(void);
/** Get OTP version
*
* @return OTP Version
*/
FuriHalVersionOtpVersion furi_hal_version_get_otp_version();
FuriHalVersionOtpVersion furi_hal_version_get_otp_version(void);
/** Get hardware version
*
* @return Hardware Version
*/
uint8_t furi_hal_version_get_hw_version();
uint8_t furi_hal_version_get_hw_version(void);
/** Get hardware target
*
* @return Hardware Target
*/
uint8_t furi_hal_version_get_hw_target();
uint8_t furi_hal_version_get_hw_target(void);
/** Get hardware body
*
* @return Hardware Body
*/
uint8_t furi_hal_version_get_hw_body();
uint8_t furi_hal_version_get_hw_body(void);
/** Get hardware body color
*
* @return Hardware Color
*/
FuriHalVersionColor furi_hal_version_get_hw_color();
FuriHalVersionColor furi_hal_version_get_hw_color(void);
/** Get hardware connect
*
* @return Hardware Interconnect
*/
uint8_t furi_hal_version_get_hw_connect();
uint8_t furi_hal_version_get_hw_connect(void);
/** Get hardware region (fake) = 0
*
* @return Hardware Region (fake)
*/
FuriHalVersionRegion furi_hal_version_get_hw_region();
FuriHalVersionRegion furi_hal_version_get_hw_region(void);
/** Get hardware region name (fake) = R00
*
* @return Hardware Region name (fake)
*/
const char* furi_hal_version_get_hw_region_name();
const char* furi_hal_version_get_hw_region_name(void);
/** Get hardware region (OTP)
*
@@ -169,31 +169,31 @@ const char* furi_hal_version_get_hw_region_name_otp();
*
* @return Display id
*/
FuriHalVersionDisplay furi_hal_version_get_hw_display();
FuriHalVersionDisplay furi_hal_version_get_hw_display(void);
/** Get hardware timestamp
*
* @return Hardware Manufacture timestamp
*/
uint32_t furi_hal_version_get_hw_timestamp();
uint32_t furi_hal_version_get_hw_timestamp(void);
/** Get pointer to target name
*
* @return Hardware Name C-string
*/
const char* furi_hal_version_get_name_ptr();
const char* furi_hal_version_get_name_ptr(void);
/** Get pointer to target device name
*
* @return Hardware Device Name C-string
*/
const char* furi_hal_version_get_device_name_ptr();
const char* furi_hal_version_get_device_name_ptr(void);
/** Get pointer to target ble local device name
*
* @return Ble Device Name C-string
*/
const char* furi_hal_version_get_ble_local_device_name_ptr();
const char* furi_hal_version_get_ble_local_device_name_ptr(void);
/** Set flipper name
*/
@@ -203,25 +203,25 @@ void furi_hal_version_set_name(const char* name);
*
* @return pointer to BLE MAC address
*/
const uint8_t* furi_hal_version_get_ble_mac();
const uint8_t* furi_hal_version_get_ble_mac(void);
/** Get address of version structure of firmware.
*
* @return Address of firmware version structure.
*/
const struct Version* furi_hal_version_get_firmware_version();
const struct Version* furi_hal_version_get_firmware_version(void);
/** Get platform UID size in bytes
*
* @return UID size in bytes
*/
size_t furi_hal_version_uid_size();
size_t furi_hal_version_uid_size(void);
/** Get const pointer to UID
*
* @return pointer to UID
*/
const uint8_t* furi_hal_version_uid();
const uint8_t* furi_hal_version_uid(void);
const uint8_t* furi_hal_version_uid_default();