ChibiOS  21.6.0
chversion.h
Go to the documentation of this file.
1 /*
2  ChibiOS - Copyright (C) 2006,2007,2008,2009,2010,2011,2012,2013,2014,
3  2015,2016,2017,2018,2019,2020,2021 Giovanni Di Sirio.
4 
5  This file is part of ChibiOS.
6 
7  ChibiOS is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation version 3 of the License.
10 
11  ChibiOS is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /**
21  * @file chversion.h
22  * @brief Version Module macros and structures.
23  *
24  * @addtogroup chibios_version
25  * @details This module contains information about the ChibiOS release, it
26  * is common to all subsystems.
27  * @{
28  */
29 
30 #ifndef CHVERSION_H
31 #define CHVERSION_H
32 
33 /*===========================================================================*/
34 /* Module constants. */
35 /*===========================================================================*/
36 
37 /**
38  * @brief ChibiOS product identification macro.
39  */
40 #define __CHIBIOS__
41 
42 /**
43  * @brief Stable release flag.
44  */
45 #define CH_VERSION_STABLE 1
46 
47 /**
48  * @name ChibiOS version identification
49  * @{
50  */
51 /**
52  * @brief ChibiOS version string.
53  */
54 #define CH_VERSION "21.6.0"
55 
56 /**
57  * @brief ChibiOS version release year.
58  */
59 #define CH_VERSION_YEAR 21
60 
61 /**
62  * @brief ChibiOS version release month.
63  */
64 #define CH_VERSION_MONTH 6
65 
66 /**
67  * @brief ChibiOS version patch number.
68  */
69 #define CH_VERSION_PATCH 0
70 
71 /**
72  * @brief ChibiOS version nickname.
73  */
74 #define CH_VERSION_NICKNAME "Atrani"
75 /** @} */
76 
77 /*===========================================================================*/
78 /* Module pre-compile time settings. */
79 /*===========================================================================*/
80 
81 /*===========================================================================*/
82 /* Derived constants and error checks. */
83 /*===========================================================================*/
84 
85 /**
86  * @brief Current version date in numeric form (yyyymm).
87  */
88 #define CH_VERSION_DATE \
89  (((CH_VERSION_YEAR + 2000) * 100) + CH_VERSION_MONTH)
90 
91 /*===========================================================================*/
92 /* Module data structures and types. */
93 /*===========================================================================*/
94 
95 /*===========================================================================*/
96 /* Module macros. */
97 /*===========================================================================*/
98 
99 /*===========================================================================*/
100 /* External declarations. */
101 /*===========================================================================*/
102 
103 /*===========================================================================*/
104 /* Module inline functions. */
105 /*===========================================================================*/
106 
107 #endif /* CHVERSION_H */
108 
109 /** @} */