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