ConOpSys V2970  P004.07
ANVILEX control operating system
System_Resource.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file System_Resource.h
3 //! @brief System resource header file.
4 //! @attention No special attention requered.
5 //! @copyright (C) 2015-2020 ANVILEX LLC
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Engine/Application/System_Resource.h $
7 //! $Revision: 2947 $
8 //! $Date: 2022-02-27 01:56:51 +0500 (So, 27 Feb 2022) $
9 //! $Author: minch $
10 //------------------------------------------------------------------------------
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are met:
14 //
15 // 1. Redistributions of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of ANVILEX nor the names of its contributors may be
23 // used to endorse or promote products derived from this software without
24 // specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
30 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 // POSSIBILITY OF SUCH DAMAGE.
37 //
38 //------------------------------------------------------------------------------
39 
40 #pragma once
41 
42 //------------------------------------------------------------------------------
43 // Include files
44 //------------------------------------------------------------------------------
45 
46 #include "Application_Resource_Configuration.h"
47 #include "Application_Resource.h"
48 #include "Math_Defines.h"
49 
50 //------------------------------------------------------------------------------
51 // Runtime engine selector
52 //------------------------------------------------------------------------------
53 
54 #ifndef RUNTIME_ENGINE
55 
56  //----------------------------------------------------------------------------
57  // Runtime engine not defined
58  //----------------------------------------------------------------------------
59 
60  // Show error message
61  #error ERROR: Undefined compilation switch: RUNTIME_ENGINE
62 
63 #else
64 
65  //----------------------------------------------------------------------------
66  // Runtime engine defined
67  //----------------------------------------------------------------------------
68 
69  //! @brief VDC platform
70  #if ( RUNTIME_ENGINE == RUNTIME_ENGINE_VDC )
71 
72  //--------------------------------------------------------------------------
73  // VDC platform
74  //--------------------------------------------------------------------------
75 
76  #include "Hardware_Platform_VDC.h"
77 
78  //! @brief KG2 platform
79  #elif ( RUNTIME_ENGINE == RUNTIME_ENGINE_P014_49 )
80 
81  //--------------------------------------------------------------------------
82  // KG2 platform
83  //--------------------------------------------------------------------------
84 
86 
87  //! @brief P014.51 platform
88  //! @todo ANVILEX KM: Deprecated ==> To remove
89  #elif ( RUNTIME_ENGINE == RUNTIME_ENGINE_P014_51 )
90 
91  //--------------------------------------------------------------------------
92  // P014.51 platform
93  //--------------------------------------------------------------------------
94 
96 
97  //! @brief KG3 MECo platform
98  #elif ( RUNTIME_ENGINE == RUNTIME_ENGINE_P015_09 )
99 
100  //--------------------------------------------------------------------------
101  // KG3 MECO platform
102  //--------------------------------------------------------------------------
103 
104  #include "Hardware_Platform_P015_09.h"
105 
106  //! @brief P014.51/P015_27 platform
107  #elif ( RUNTIME_ENGINE == RUNTIME_ENGINE_P015_27 )
108 
109  //--------------------------------------------------------------------------
110  // P014.51 platform (CCS platform)
111  //--------------------------------------------------------------------------
112 
113  #include "Hardware_Platform_P015_27.h"
114 
115  //! @brief KG3 platform
116  #elif ( RUNTIME_ENGINE == RUNTIME_ENGINE_P017_39 )
117 
118  //--------------------------------------------------------------------------
119  // KG3 platform
120  //--------------------------------------------------------------------------
121 
122  #include "Hardware_Platform_P017_39.h"
123 
124  //! @brief PUC2 platform
125  #elif ( RUNTIME_ENGINE == RUNTIME_ENGINE_P016_05 )
126 
127  //--------------------------------------------------------------------------
128  // PUC2 platform
129  //--------------------------------------------------------------------------
130 
131  #include "Hardware_Platform_P016_05.h"
132 
133  #else
134 
135  //--------------------------------------------------------------------------
136  // ERROR: Runtime platform not defined now
137  //--------------------------------------------------------------------------
138 
139  // Show error message
140  #error ERROR: Runtime target not defined now.
141 
142  #endif
143 
144 #endif
145 
146 //------------------------------------------------------------------------------
147 // End of file
148 //------------------------------------------------------------------------------
Diverse mathematical defines header file.