$treeview $search $mathjax $extrastylesheet
avr-libc  2.0.0
$projectbrief
$projectbrief
$searchbox

AVR Libc Home Page

AVRs

AVR Libc Development Pages

Main Page

User Manual

Library Reference

FAQ

Example Projects

version.h

00001 /* Copyright (c) 2005, Joerg Wunsch                               -*- c -*-
00002    All rights reserved.
00003 
00004    Redistribution and use in source and binary forms, with or without
00005    modification, are permitted provided that the following conditions are met:
00006 
00007    * Redistributions of source code must retain the above copyright
00008      notice, this list of conditions and the following disclaimer.
00009 
00010    * Redistributions in binary form must reproduce the above copyright
00011      notice, this list of conditions and the following disclaimer in
00012      the documentation and/or other materials provided with the
00013      distribution.
00014 
00015    * Neither the name of the copyright holders nor the names of
00016      contributors may be used to endorse or promote products derived
00017      from this software without specific prior written permission.
00018 
00019   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00020   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00021   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00022   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00023   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00024   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00025   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00026   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00027   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00028   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00029   POSSIBILITY OF SUCH DAMAGE. */
00030 
00031 /* $Id$ */
00032 
00033 /** \defgroup avr_version <avr/version.h>: avr-libc version macros
00034     \code #include <avr/version.h> \endcode
00035 
00036     This header file defines macros that contain version numbers and
00037     strings describing the current version of avr-libc.
00038 
00039     The version number itself basically consists of three pieces that
00040     are separated by a dot: the major number, the minor number, and
00041     the revision number.  For development versions (which use an odd
00042     minor number), the string representation additionally gets the
00043     date code (YYYYMMDD) appended.
00044 
00045     This file will also be included by \c <avr/io.h>.  That way,
00046     portable tests can be implemented using \c <avr/io.h> that can be
00047     used in code that wants to remain backwards-compatible to library
00048     versions prior to the date when the library version API had been
00049     added, as referenced but undefined C preprocessor macros
00050     automatically evaluate to 0.
00051 */
00052 
00053 #ifndef _AVR_VERSION_H_
00054 #define _AVR_VERSION_H_
00055 
00056 /** \ingroup avr_version
00057     String literal representation of the current library version. */
00058 #define __AVR_LIBC_VERSION_STRING__ "2.0.0"
00059 
00060 /** \ingroup avr_version
00061     Numerical representation of the current library version.
00062 
00063     In the numerical representation, the major number is multiplied by
00064     10000, the minor number by 100, and all three parts are then
00065     added.  It is intented to provide a monotonically increasing
00066     numerical value that can easily be used in numerical checks.
00067  */
00068 #define __AVR_LIBC_VERSION__        20000UL
00069 
00070 /** \ingroup avr_version
00071     String literal representation of the release date. */
00072 #define __AVR_LIBC_DATE_STRING__    "20150208"
00073 
00074 /** \ingroup avr_version
00075     Numerical representation of the release date. */
00076 #define __AVR_LIBC_DATE_            20150208UL
00077 
00078 /** \ingroup avr_version
00079     Library major version number. */
00080 #define __AVR_LIBC_MAJOR__          2
00081 
00082 /** \ingroup avr_version
00083     Library minor version number. */
00084 #define __AVR_LIBC_MINOR__          0
00085 
00086 /** \ingroup avr_version
00087     Library revision number. */
00088 #define __AVR_LIBC_REVISION__       0
00089 
00090 #endif /* _AVR_VERSION_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Defines