AVR Libc Home Page AVRs AVR Libc Development Pages
Main Page User Manual Reference FAQ Example Projects

version.h

01	1 Copyright (c) 2005, Joerg Wunsch                               -*- c -*-
022All rights reserved. 033
044Redistribution and use in source and binary forms, with or without 055modification, are permitted provided that the following conditions are met: 066 077* Redistributions of source code must retain the above copyright 088notice, this list of conditions and the following disclaimer. 099 1010* Redistributions in binary form must reproduce the above copyright 1111notice, this list of conditions and the following disclaimer in 1212the documentation and/or other materials provided with the 1313distribution. 1414 1515* Neither the name of the copyright holders nor the names of 1616contributors may be used to endorse or promote products derived 1717from this software without specific prior written permission. 1818 1919THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2020AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2121IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2222ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2323LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2424CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2525SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2626INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2727CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2828ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2929POSSIBILITY OF SUCH DAMAGE. */ 3030 3131/* $Id: version.h.in 870 2005-09-12 20:18:12Z joerg_wunsch $ */ 3232 3333/** \defgroup avr_version <avr/version.h>: avr-libc version macros 3434\code #include <avr/version.h> \endcode 3535 3636This header file defines macros that contain version numbers and 3737strings describing the current version of avr-libc. 3838 3939The version number itself basically consists of three pieces that 4040are separated by a dot: the major number, the minor number, and 4141the revision number. For development versions (which use an odd 4242minor number), the string representation additionally gets the 4343date code (YYYYMMDD) appended. 4444 4545This file will also be included by \c <avr/io.h>. That way, 4646portable tests can be implemented using \c <avr/io.h> that can be 4747used in code that wants to remain backwards-compatible to library 4848versions prior to the date when the library version API had been 4949added, as referenced but undefined C preprocessor macros 5050automatically evaluate to 0. 5151*/ 5252 5353#ifndef _AVR_VERSION_H_ 5454#define _AVR_VERSION_H_ 5555 5656/** \ingroup avr_version 5757String literal representation of the current library version. */ 58 58#define __AVR_LIBC_VERSION_STRING__ "2.0.0" 5959 6060/** \ingroup avr_version 6161Numerical representation of the current library version. 6262 6363In the numerical representation, the major number is multiplied by 646410000, the minor number by 100, and all three parts are then 6565added. It is intented to provide a monotonically increasing 6666numerical value that can easily be used in numerical checks. 6767*/ 68 68#define __AVR_LIBC_VERSION__ 20000UL 6969 7070/** \ingroup avr_version 7171String literal representation of the release date. */ 72 72#define __AVR_LIBC_DATE_STRING__ "20150208" 7373 7474/** \ingroup avr_version 7575Numerical representation of the release date. */ 76 76#define __AVR_LIBC_DATE_ 20150208UL 7777 7878/** \ingroup avr_version 7979Library major version number. */ 80 80#define __AVR_LIBC_MAJOR__ 2 8181 8282/** \ingroup avr_version 8383Library minor version number. */ 84 84#define __AVR_LIBC_MINOR__ 0 8585 8686/** \ingroup avr_version 8787Library revision number. */ 88 88#define __AVR_LIBC_REVISION__ 0 8989 9090#endif /* _AVR_VERSION_H_ */