Prusa MINI Firmware overview
version.c File Reference
#include "version.h"
#include "config.h"

Macros

#define _STR(x)   #x
 
#define STR(x)   _STR(x)
 
#define VERSION_MAJ(v)   #v
 
#define VERSION_MIN(v)   #v
 
#define VERSION_SUB(v)   #v
 
#define VERSION(ver)
 

Variables

const char version_firmware_name [] = FWNAME
 
const char version_version [] = VERSION(FW_VERSION)
 semantic version (https://semver.org) is Prusa3D standard More...
 
const char version_build [] = "build " STR(FW_BUILDNR) FW_BUILDSX
 
const int version_build_nr = FW_BUILDNR
 build number More...
 

Macro Definition Documentation

◆ _STR

#define _STR (   x)    #x

◆ STR

#define STR (   x)    _STR(x)

◆ VERSION_MAJ

#define VERSION_MAJ (   v)    #v

◆ VERSION_MIN

#define VERSION_MIN (   v)    #v

◆ VERSION_SUB

#define VERSION_SUB (   v)    #v

◆ VERSION

#define VERSION (   ver)
Value:
"." VERSION_MIN(0) "." VERSION_SUB(2)

Variable Documentation

◆ version_firmware_name

const char version_firmware_name[] = FWNAME

◆ version_version

const char version_version[] = VERSION(FW_VERSION)

semantic version (https://semver.org) is Prusa3D standard

◆ version_build

const char version_build[] = "build " STR(FW_BUILDNR) FW_BUILDSX

◆ version_build_nr

const int version_build_nr = FW_BUILDNR

build number

do not use FW_BUILDNR macro, as it is not defined outside of this file

VERSION_MAJ
#define VERSION_MAJ(v)
Definition: version.c:16
VERSION_SUB
#define VERSION_SUB(v)
Definition: version.c:18
VERSION_MIN
#define VERSION_MIN(v)
Definition: version.c:17