Loading...
Searching...
No Matches
riot_version.h File Reference

Common macros and compiler attributes/pragmas configuration. More...

Detailed Description

Common macros and compiler attributes/pragmas configuration.

Author
René Kijewski rene..nosp@m.kije.nosp@m.wski@.nosp@m.fu-b.nosp@m.erlin.nosp@m..de
Michel Rottleuthner miche.nosp@m.l.ro.nosp@m.ttleu.nosp@m.thne.nosp@m.r@haw.nosp@m.-ham.nosp@m.burg..nosp@m.de

Definition in file riot_version.h.

#include <stdint.h>
+ Include dependency graph for riot_version.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define RIOT_VERSION_NUM(major, minor, patch, extra)
 Generates a 64 bit variable of a release version.
 

Macro Definition Documentation

◆ RIOT_VERSION_NUM

#define RIOT_VERSION_NUM (   major,
  minor,
  patch,
  extra 
)
Value:
(((0ULL + major) << 48) + ((0ULL + minor) << 32) + \
((0ULL + patch) << 16) + (extra))

Generates a 64 bit variable of a release version.

Comparisons to this only apply to released branches

To define extra add a file EXTRAVERSION to the RIOT root with the content

RIOT_EXTRAVERSION = <extra>

with <extra> being the number of your local version. This can be useful if you are maintaining a downstream release to base further work on.

Warning
This is only intended to be used with external boards or modules. In-tree code must not make use of this macro.
Parameters
[in]majorMayor version of the release
[in]minorMinor version of the release
[in]patchPatch level of the release
[in]extraExtra version, user defined
Returns
A machine readable version variable

Definition at line 55 of file riot_version.h.