AVR Libc Home Page AVRs AVR Libc Development Pages
Main Page User Manual Library Reference FAQ Alphabetical Index 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: version.h.in 870 2005-09-12 20:18:12Z joerg_wunsch $ */
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__ "1.7.1"
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__        10701UL
00069 
00070 /** \ingroup avr_version
00071     String literal representation of the release date. */
00072 #define __AVR_LIBC_DATE_STRING__    "20110216"
00073 
00074 /** \ingroup avr_version
00075     Numerical representation of the release date. */
00076 #define __AVR_LIBC_DATE_            20110216UL
00077 
00078 /** \ingroup avr_version
00079     Library major version number. */
00080 #define __AVR_LIBC_MAJOR__          1
00081 
00082 /** \ingroup avr_version
00083     Library minor version number. */
00084 #define __AVR_LIBC_MINOR__          7
00085 
00086 /** \ingroup avr_version
00087     Library revision number. */
00088 #define __AVR_LIBC_REVISION__       1
00089 
00090 #endif /* _AVR_VERSION_H_ */

Automatically generated by Doxygen 1.7.3 on Thu May 19 2011.