ChibiOS  21.6.0
chcustomer.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 chcustomer.h
22  * @brief Customer-related info.
23  *
24  * @addtogroup chibios_customer
25  * @details This module incapsulates licensee information, this is only
26  * meaningful for commercial licenses. It is a stub for public
27  * releases.
28  * @{
29  */
30 
31 #ifndef CHCUSTOMER_H
32 #define CHCUSTOMER_H
33 
34 /*===========================================================================*/
35 /* Module constants. */
36 /*===========================================================================*/
37 
38 /**
39  * @brief Customer readable identifier.
40  */
41 #define CH_CUSTOMER_ID_STRING "Santa, North Pole"
42 
43 /**
44  * @brief Customer code.
45  */
46 #define CH_CUSTOMER_ID_CODE "xxxx-yyyy"
47 
48 /**
49  * @brief End-Of-Support date (yyyymm).
50  */
51 #define CH_CUSTOMER_LICENSE_EOS_DATE 209912
52 
53 /**
54  * @brief Licensed branch year.
55  */
56 #define CH_CUSTOMER_LICENSE_VERSION_YEAR 99
57 
58 /**
59  * @brief Licensed branch month.
60  */
61 #define CH_CUSTOMER_LICENSE_VERSION_MONTH 12
62 
63 /**
64  * @brief Current license.
65  * @note This setting is reserved to the copyright owner.
66  * @note Changing this setting invalidates the license.
67  * @note The license statement in the source headers is valid, applicable
68  * and binding regardless this setting.
69  */
70 #define CH_LICENSE CH_LICENSE_GPL
71 
72 /**
73  * @name Licensed Products
74  * @{
75  */
76 #define CH_CUSTOMER_LIC_RT TRUE
77 #define CH_CUSTOMER_LIC_NIL TRUE
78 #define CH_CUSTOMER_LIC_OSLIB TRUE
79 #define CH_CUSTOMER_LIC_EX TRUE
80 #define CH_CUSTOMER_LIC_SB TRUE
81 #define CH_CUSTOMER_LIC_PORT_CM0 TRUE
82 #define CH_CUSTOMER_LIC_PORT_CM3 TRUE
83 #define CH_CUSTOMER_LIC_PORT_CM4 TRUE
84 #define CH_CUSTOMER_LIC_PORT_CM7 TRUE
85 #define CH_CUSTOMER_LIC_PORT_CM33 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 /** @} */