avr_version - <avr/version.h>: avr-libc version macros
Contents
Detailed Description
#include <avr/version.h>
This header file defines macros that contain version numbers and strings describing the current version
of avr-libc.
The version number itself basically consists of three pieces that are separated by a dot: the major
number, the minor number, and the revision number. For development versions (which use an odd minor
number), the string representation additionally gets the date code (YYYYMMDD) appended.
This file will also be included by <avr/io.h>.Thatway,portabletestscanbeimplementedusing<avr/io.h>thatcanbeusedincodethatwantstoremainbackwards-compatibletolibraryversionspriortothedatewhenthelibraryversionAPIhadbeenadded,asreferencedbutundefinedCpreprocessormacrosautomaticallyevaluateto0.Macro Definition Documentation
#define__AVR_LIBC_DATE_20240718UL
Numerical representation of the release date.
#define__AVR_LIBC_DATE_STRING__'20240718'
String literal representation of the release date.
#define__AVR_LIBC_MAJOR__2
Library major version number.
#define__AVR_LIBC_MINOR__2
Library minor version number.
#define__AVR_LIBC_REVISION__1
Library revision number.
#define__AVR_LIBC_VERSION__20201UL
Numerical representation of the current library version.
In the numerical representation, the major number is multiplied by 10000, the minor number by 100, and
all three parts are then added. It is intented to provide a monotonically increasing numerical value that
can easily be used in numerical checks.
#define__AVR_LIBC_VERSION_STRING__'2.2.1'
String literal representation of the current library version.
Name
avr_version - <avr/version.h>: avr-libc version macros
Synopsis
Macros
#define __AVR_LIBC_VERSION_STRING__ '2.2.1'
#define __AVR_LIBC_VERSION__ 20201UL
#define __AVR_LIBC_DATE_STRING__ '20240718'
#define __AVR_LIBC_DATE_ 20240718UL
#define __AVR_LIBC_MAJOR__ 2
#define __AVR_LIBC_MINOR__ 2
#define __AVR_LIBC_REVISION__ 1
