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 all things ccNOos_tests, which is an application of ccNOos
23 // ccNOos_tests is the application solution
24 #include "..\..\..\testApps\SatComACS\PlatformApp_Serialization.h"
25 
26 
27 ////////////////////////////////
28 // Compile Error if Examples/Tests not defining
29 #ifndef Mn
30  #error Mn must be defined - see examples
31 #endif
32 #ifndef MODdeclareCREATEINS
33  #error MODdeclareCREATEINS must be defined - see examples
34 #endif
35 #ifndef MODcallCREATEINS
36  #error MODcallCREATEINS must be defined - see examples
37 #endif
38 #ifdef __cplusplus
39  #ifndef PLATFORM_APP_CLASS
40  #error PLATFORM_APP_CLASS macro must be defined in application code
41  #endif
42 #else
43  #ifndef MODdeclareDATA
44  #error MODdeclareDATA macro must be defined in application code
45  #endif
46 #endif
47 
48 ////////////////////////////////
49 // Compile Error if Examples/Tests not defining
50 #if PLATFORM_NAME==PSoC4
51 #include <Platform_PSoC4.h>
52 #else
53 #error "No Platform Selected for Compile!"
54 #endif
55 
56 
57 ///////////////////////////////////////////////////////////////////////
58 // Module Data Structure or Module Data Class
59 // -Declared from Macro Template
60 // -Macro Template is Defined in the Application Solution Header
61 ///////////////////////////////////////////////////////////////////////
62 #ifdef __cplusplus
63  PLATFORM_APP_CLASS(Mn);
64 #else
66 #endif
67 
68 
69 
70 ///////////////////////////////////////////////////////////////////////
71 // Platform and Application Specific IO Device Functions
72 void writeAttenuatorValues(struct txRxStruct* txRxStructPtrIn) { ; }
73 void readGPS(struct gpsStruct* gpsStructPtrIn) { ; }
74 void readEcompass(struct eCompStruct* eCompStructPtrIn) { ; }
75 void readFreqConv(struct freqConvStruct* freqConvStructPtrIn) { ; }
76 void writeFreqConv(struct freqConvStruct* freqConvStructPtrIn) { ; }
77 void readPowerMeter(struct powerMeterStruct* powerMeterStructPtrIn) { ; }
78 void writePowerMeter(struct powerMeterStruct* powerMeterStructPtrIn) { ; }
79 
80 
81 
82 
83 ///////////////////////////////////////////////////////////////////////
84 // Application Data Instances are Created here (Platform Specific)
85 #ifdef __cplusplus
86 theApplicationClass theApplicationExample;
87 #else
89 #endif
90 
91 ////////////////////////////////////////////////////////////////////////////////
92 // Platform Main Entry Points call ExeSys Area Functions
93 #ifdef MAIN_C_NOos_Wsystick
95 #endif
96 #ifdef MAIN_C_NOos_NOsystick
98 #endif
PLATFORM_APP_CTEMPLATE
#define PLATFORM_APP_CTEMPLATE(MODNAME)
Definition: Application_Solution.h:117
readPowerMeter
void readPowerMeter(struct powerMeterStruct *powerMeterStructPtrIn)
Definition: Application_Platform_Main.c:77
Mn
#define Mn
Definition: Application_Solution.h:32
readEcompass
void readEcompass(struct eCompStruct *eCompStructPtrIn)
Definition: Application_Platform_Main.c:74
txRxStruct
Definition: TxRxmodule.h:38
readGPS
void readGPS(struct gpsStruct *gpsStructPtrIn)
Definition: Application_Platform_Main.c:73
powerMeterStruct
Definition: TPMmodule.h:46
C_NOos_MAINnSYSTICK_TEMPLATE
#define C_NOos_MAINnSYSTICK_TEMPLATE
Definition: version_config.h:353
gpsStruct
Definition: APTmodule.h:37
C_OS_MAIN_TEMPLATE
#define C_OS_MAIN_TEMPLATE
Definition: version_config.h:383
writePowerMeter
void writePowerMeter(struct powerMeterStruct *powerMeterStructPtrIn)
Definition: Application_Platform_Main.c:78
freqConvStruct
Definition: TPMmodule.h:36
MODdeclareDATA
MODdeclareDATA(Mn)
eCompStruct
Definition: APTmodule.h:47
Platform_PSoC4.h
IMS: ccNOos, Platform Specification, PSoC4
writeFreqConv
void writeFreqConv(struct freqConvStruct *freqConvStructPtrIn)
Definition: Application_Platform_Main.c:76
writeAttenuatorValues
void writeAttenuatorValues(struct txRxStruct *txRxStructPtrIn)
Definition: Application_Platform_Main.c:72
readFreqConv
void readFreqConv(struct freqConvStruct *freqConvStructPtrIn)
Definition: Application_Platform_Main.c:75