ccNOos  v0.0.0
Build Portable Microcontroller Applications!
Application_Platform_Main.c
Go to the documentation of this file.
1 /** \file WIN32_Console.cpp
2 * \brief WIN32 Console Implementation of ccNOos_Tests in c++
3 
4  Copyright 2021 InMechaSol, Inc
5 
6  Licensed under the Apache License, Version 2.0 (the "License");
7  you may not use this file except in compliance with the License.
8  You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 
18 Notes:
19 
20 */
21 //////////////////////////////////
22 // Include Application and cNOos
23 #include "..\..\..\testApps\ccNOos_Tests\PlatformApp_Serialization.h"
24 
25 ////////////////////////////////
26 // Compile Error if Examples/Tests not defining
27 #ifndef Mn
28  #error Mn must be defined - see examples
29 #endif
30 #ifndef MODdeclareCREATEINS
31  #error MODdeclareCREATEINS must be defined - see examples
32 #endif
33 #ifndef MODcallCREATEINS
34  #error MODcallCREATEINS must be defined - see examples
35 #endif
36 #ifdef __cplusplus
37  #ifndef PLATFORM_APP_CLASS
38  #error PLATFORM_APP_CLASS macro must be defined in application code
39  #endif
40 #else
41  #ifndef MODdeclareDATA
42  #error MODdeclareDATA macro must be defined in application code
43  #endif
44 #endif
45 
46 ////////////////////////////////
47 // Compile Error if Examples/Tests not defining
48 #if PLATFORM_NAME==Win32
49 #include "Platform_Win32.h"
50 #else
51 #error "No Platform Selected for Compile!"
52 #endif
53 
54 ///////////////////////////////////////////////////////////////////////
55 // Module Data Structure or Module Data Class
56 // -Declared from Macro Template
57 // -Macro Template is Defined in the Application Solution Header
58 ///////////////////////////////////////////////////////////////////////
59 #ifdef __cplusplus
60  PLATFORM_APP_CLASS(Mn);
61 #else
63 #endif
64 
65 ///////////////////////////////////////////////////////////////////////
66 // Platform and Application Specific IO Device Functions
67 
68 ///////////////////////////////////////////////////////////////////////
69 // Application Data Instances are Created here (Platform Specific)
70 #ifdef __cplusplus
71 theApplicationClass theApplicationExample;
72 #else
74 #endif
75 
76 ////////////////////////////////////////////////////////////////////////////////
77 // Platform Main Entry Points call ExeSys Area Functions
78 #ifdef MAIN_C_NOos_Wsystick
80 #endif
81 #ifdef MAIN_C_NOos_NOsystick
83 #endif
PLATFORM_APP_CTEMPLATE
#define PLATFORM_APP_CTEMPLATE(MODNAME)
Definition: Application_Solution.h:117
Platform_Win32.h
IMS: ccNOos, Platform Specification, Win32
Mn
#define Mn
Definition: Application_Solution.h:32
C_NOos_MAINnSYSTICK_TEMPLATE
#define C_NOos_MAINnSYSTICK_TEMPLATE
Definition: version_config.h:353
C_OS_MAIN_TEMPLATE
#define C_OS_MAIN_TEMPLATE
Definition: version_config.h:383
MODdeclareDATA
MODdeclareDATA(Mn)