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"
21#define APP_VERSION_MAJOR 0
23#define APP_VERSION_MINOR 0
25#define APP_PATCHLEVEL 0
42#define infuse_version mcuboot_img_sem_ver
51#define INFUSE_VERSION_INT(v) \
52 ((((uint32_t)(v)->major) << 24) | (((uint32_t)(v)->minor) << 16) | \
53 ((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:76
struct mcuboot_img_sem_ver application_version_get(void)
Get version of the currently running application.
#define infuse_version
Infuse version structure, uses the MCUboot semantic version definition.
Definition version.h:42
#define INFUSE_VERSION_INT(v)
Convert version struct to sortable integer.
Definition version.h:51