ChibiOS 21.11.5
chcustomer.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 chcustomer.h
21 * @brief Customer-related info.
22 *
23 * @addtogroup chibios_customer
24 * @details This module incapsulates licensee information, this is only
25 * meaningful for commercial licenses. It is a stub for public
26 * releases.
27 * @{
28 */
29
30#ifndef CHCUSTOMER_H
31#define CHCUSTOMER_H
32
33/*===========================================================================*/
34/* Module constants. */
35/*===========================================================================*/
36
37/**
38 * @brief Customer readable identifier.
39 */
40#define CH_CUSTOMER_ID_STRING "Santa, North Pole"
41
42/**
43 * @brief Customer code.
44 */
45#define CH_CUSTOMER_ID_CODE "xxxx-yyyy"
46
47/**
48 * @brief End-Of-Support date (yyyymm).
49 */
50#define CH_CUSTOMER_LICENSE_EOS_DATE 209912
51
52/**
53 * @brief Licensed branch year.
54 */
55#define CH_CUSTOMER_LICENSE_VERSION_YEAR 99
56
57/**
58 * @brief Licensed branch month.
59 */
60#define CH_CUSTOMER_LICENSE_VERSION_MONTH 12
61
62/**
63 * @brief Current license.
64 * @note This setting is reserved to the copyright owner.
65 * @note Changing this setting invalidates the license.
66 * @note The license statement in the source headers is valid, applicable
67 * and binding regardless this setting.
68 */
69#define CH_LICENSE CH_LICENSE_GPL
70
71/**
72 * @name Licensed Products
73 * @{
74 */
75#define CH_CUSTOMER_LIC_RT TRUE
76#define CH_CUSTOMER_LIC_NIL TRUE
77#define CH_CUSTOMER_LIC_OSLIB TRUE
78#define CH_CUSTOMER_LIC_EX TRUE
79#define CH_CUSTOMER_LIC_SB TRUE
80#define CH_CUSTOMER_LIC_PORT_CM0 TRUE
81#define CH_CUSTOMER_LIC_PORT_CM3 TRUE
82#define CH_CUSTOMER_LIC_PORT_CM4 TRUE
83#define CH_CUSTOMER_LIC_PORT_CM7 TRUE
84#define CH_CUSTOMER_LIC_PORT_CM33 TRUE
85#define CH_CUSTOMER_LIC_PORT_CM55 TRUE
86#define CH_CUSTOMER_LIC_PORT_ARM79 TRUE
87#define CH_CUSTOMER_LIC_PORT_E200Z0 TRUE
88#define CH_CUSTOMER_LIC_PORT_E200Z2 TRUE
89#define CH_CUSTOMER_LIC_PORT_E200Z3 TRUE
90#define CH_CUSTOMER_LIC_PORT_E200Z4 TRUE
91/** @} */
92
93/*===========================================================================*/
94/* Module pre-compile time settings. */
95/*===========================================================================*/
96
97/*===========================================================================*/
98/* Derived constants and error checks. */
99/*===========================================================================*/
100
101/**
102 * @brief Licensed version date in numeric form (yyyymm).
103 */
104#define CH_CUSTOMER_LICENSE_VERSION_DATE \
105 (((CH_CUSTOMER_LICENSE_VERSION_YEAR + 2000) * 100) + \
106 CH_CUSTOMER_LICENSE_VERSION_MONTH)
107
108/*===========================================================================*/
109/* Module data structures and types. */
110/*===========================================================================*/
111
112/*===========================================================================*/
113/* Module macros. */
114/*===========================================================================*/
115
116/*===========================================================================*/
117/* External declarations. */
118/*===========================================================================*/
119
120/*===========================================================================*/
121/* Module inline functions. */
122/*===========================================================================*/
123
124#endif /* CHCUSTOMER_H */
125
126/** @} */