mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
[FL-3260] Added API version to device info (#2611)
* hal: device_info: added API version to "firmware.api.major" & "firmware.api.minor" * FuriHal: bump device info version Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
/* Generated table */
|
||||
#include <firmware_api_table.h>
|
||||
|
||||
#include <furi_hal_info.h>
|
||||
|
||||
static_assert(!has_hash_collisions(elf_api_table), "Detected API method hash collision!");
|
||||
|
||||
constexpr HashtableApiInterface elf_api_interface{
|
||||
@@ -19,3 +21,8 @@ constexpr HashtableApiInterface elf_api_interface{
|
||||
};
|
||||
|
||||
const ElfApiInterface* const firmware_api_interface = &elf_api_interface;
|
||||
|
||||
extern "C" void furi_hal_info_get_api_version(uint16_t* major, uint16_t* minor) {
|
||||
*major = elf_api_interface.api_version_major;
|
||||
*minor = elf_api_interface.api_version_minor;
|
||||
}
|
||||
Reference in New Issue
Block a user