10#ifndef INFUSE_SDK_INCLUDE_INFUSE_VERSION_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_VERSION_H_
13#include <zephyr/dfu/mcuboot.h>
14#include <zephyr/storage/flash_map.h>
16#if __has_include("zephyr/app_version.h")
17#include "zephyr/app_version.h"
20#define APP_VERSION_MAJOR 0
21#define APP_VERSION_MINOR 0
22#define APP_PATCHLEVEL 0
37#define infuse_version mcuboot_img_sem_ver
46#define INFUSE_VERSION_INT(v) \
47 ((((uint32_t)(v)->major) << 24) | (((uint32_t)(v)->minor) << 16) | \
48 ((uint32_t)(v)->revision))
static int infuse_version_compare(struct mcuboot_img_sem_ver *a, struct mcuboot_img_sem_ver *b)
Compare two version structures.
Definition version.h:71
struct mcuboot_img_sem_ver application_version_get(void)
Get version of the currently running application.
#define infuse_version
Definition version.h:37
#define INFUSE_VERSION_INT(v)
Convert version struct to sortable integer.
Definition version.h:46