mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 01:03:22 +00:00
aa20a78b0e
* Add bootloader versioning * Move some logic to api-hal-version * Backport to f4 * Dolphin: update version screen layout, make it more readable Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
49 lines
1 KiB
C
49 lines
1 KiB
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <version.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Check target firmware version */
|
|
bool api_hal_version_do_i_belong_here();
|
|
|
|
/** Get hardware version */
|
|
const uint8_t api_hal_version_get_hw_version();
|
|
|
|
/** Get hardware target */
|
|
const uint8_t api_hal_version_get_hw_target();
|
|
|
|
/** Get hardware body */
|
|
const uint8_t api_hal_version_get_hw_body();
|
|
|
|
/** Get hardware connect */
|
|
const uint8_t api_hal_version_get_hw_connect();
|
|
|
|
/** Get hardware timestamp */
|
|
const uint32_t api_hal_version_get_hw_timestamp();
|
|
|
|
/** Get pointer to target name */
|
|
const char * api_hal_version_get_name_ptr();
|
|
|
|
/**
|
|
* Get address of version structure of bootloader, stored in chip flash.
|
|
*
|
|
* @return Address of boot version structure.
|
|
*/
|
|
const struct Version* api_hal_version_get_boot_version(void);
|
|
|
|
/**
|
|
* Get address of version structure of firmware.
|
|
*
|
|
* @return Address of firmware version structure.
|
|
*/
|
|
const struct Version* api_hal_version_get_fw_version(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|