ccNOos  v0.0.0
Build Portable Microcontroller Applications!
Macros | Functions
version_config.h File Reference

IMS: ccNOos, Declarations for straight C and C++ More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ccNOos_MajorVer   0
 
#define ccNOos_MinorVer   0
 
#define ccNOos_BuildNumber   0
 
#define ccNOos_DevString   dev
 
#define ccNOos_VerDate   08JAN2021
 
#define CTASTR2(pre, post)   pre ## post
 
#define CTASTR(pre, post)   CTASTR2(pre,post)
 
#define STATIC_ASSERT(cond, msg)
 
#define xstr(s)   str(s)
 
#define str(s)   #s
 
#define ccNOos_VersionNumber   ccNOos_MajorVer.ccNOos_MinorVer.ccNOos_BuildNumber-ccNOos_DevString
 
#define ccNOosVersionsTemplate
 
#define charBuffMax   128
 
#define RETURN_SUCCESS   (0)
 Function Return Value for Success. More...
 
#define RETURN_ERROR   (-1)
 Function Return Value for ERROR. More...
 
#define ui8FALSE   (0u)
 
#define ui8TRUE   (1u)
 
#define nullptr   (0u)
 
#define __MODstructTYPEname(mNAME)   mNAME##Struct
 
#define MODstructTYPEname(mNAME)   __MODstructTYPEname(mNAME)
 
#define __MODdataINST(mNAME)   mNAME##Data
 
#define MODdataINST(mNAME)   __MODdataINST(mNAME)
 
#define __MODdataPTR(mNAME)   mNAME##DataPtrIn
 
#define MODdataPTR(mNAME)   __MODdataPTR(mNAME)
 
#define __MODsetup(mNAME)   setup_##mNAME
 
#define MODsetup(mNAME)   __MODsetup(mNAME)
 
#define __MODloop(mNAME)   loop_##mNAME
 
#define MODloop(mNAME)   __MODloop(mNAME)
 
#define __MODsystick(mNAME)   systick_##mNAME
 
#define MODsystick(mNAME)   __MODsystick(mNAME)
 
#define __MODprintMENU(mNAME)   printM_##mNAME
 
#define MODprintMENU(mNAME)   __MODprintMENU(mNAME)
 
#define __MODparseINPUT(mNAME)   parseI_##mNAME
 
#define MODparseINPUT(mNAME)   __MODparseINPUT(mNAME)
 
#define __MODstructCREATE(mNAME)   Create##mNAME##Struct
 
#define MODstructCREATE(mNAME)   __MODstructCREATE(mNAME)
 
#define __MODdeclareSTRUCT(mNAME)   struct __MODstructTYPEname(mNAME)
 
#define MODdeclareSTRUCT(mNAME)   __MODdeclareSTRUCT(mNAME)
 
#define COMPMODFIRST   struct computeModuleStruct compMod
 
#define __MODdeclarePTRIN(mNAME)   struct __MODstructTYPEname(mNAME)* __MODdataPTR(mNAME)
 
#define MODdeclarePTRIN(mNAME)   __MODdeclarePTRIN(mNAME)
 
#define __MODdeclareDATA(mNAME)   struct __MODstructTYPEname(mNAME) __MODdataINST(mNAME)
 
#define MODdeclareDATA(mNAME)   __MODdeclareDATA(mNAME)
 
#define __MODdeclareCREATE(mNAME)   __MODdeclareSTRUCT(mNAME) __MODstructCREATE(mNAME)
 
#define MODdeclareCREATE(mNAME)   __MODdeclareCREATE(mNAME)
 
#define __MODdeclareSETUP(mNAME)   int __MODsetup(mNAME) ( struct computeModuleStruct* compModPtrIn )
 
#define MODdeclareSETUP(mNAME)   __MODdeclareSETUP(mNAME)
 
#define __MODdeclareLOOP(mNAME)   int __MODloop(mNAME) ( struct computeModuleStruct* compModPtrIn )
 
#define MODdeclareLOOP(mNAME)   __MODdeclareLOOP(mNAME)
 
#define __MODdeclarePRINTm(mNAME)   void __MODprintMENU(mNAME) ( struct computeModuleStruct* compModPtrIn, struct uiStruct* uiStructPtrIn )
 
#define MODdeclarePRINTm(mNAME)   __MODdeclarePRINTm(mNAME)
 
#define __MODdeclarePARSEi(mNAME)   void __MODparseINPUT(mNAME) ( struct computeModuleStruct* compModPtrIn, struct uiStruct* uiStructPtrIn )
 
#define MODdeclarePARSEi(mNAME)   __MODdeclarePARSEi(mNAME)
 
#define __MODdeclareSYSTICK(mNAME)   void __MODsystick(mNAME) ( struct computeModuleStruct* compModPtrIn )
 
#define MODdeclareSYSTICK(mNAME)   __MODdeclareSYSTICK(mNAME)
 
#define __MODDATAPTR_RETURN(mNAME)
 
#define MODDATAPTR_RETURN(mNAME)   __MODDATAPTR_RETURN(mNAME)
 
#define __MODDATAPTR_ERROR_RETURN(mNAME)
 
#define MODDATAPTR_ERROR_RETURN(mNAME)   __MODDATAPTR_ERROR_RETURN(mNAME)
 
#define __IF_MODULE_ERROR(mNAME)   if(__MODdataPTR(mNAME)->compMod.exceptionFlags != 0u)
 
#define IF_MODULE_ERROR(mNAME)   __IF_MODULE_ERROR( mNAME )
 
#define __CLEAR_MODULE_ERRORS(mNAME)   __MODdataPTR(mNAME)->compMod.exceptionFlags = 0u
 
#define CLEAR_MODULE_ERRORS(mNAME)   __CLEAR_MODULE_ERRORS(mNAME)
 
#define __C_NOos_MAINnSYSTICK_TEMPLATE
 
#define C_NOos_MAINnSYSTICK_TEMPLATE   __C_NOos_MAINnSYSTICK_TEMPLATE
 
#define __C_OS_MAIN_TEMPLATE
 
#define C_OS_MAIN_TEMPLATE   __C_OS_MAIN_TEMPLATE
 

Functions

const char * ccNOosccNOos_VerString ()
 
const char * ccNOosccNOos_VerDateString ()
 
 STATIC_ASSERT (sizeof(UI_8)==1, UI_8_must_be_8_bits)
 
 STATIC_ASSERT (sizeof(UI_16)==2, UI_16_must_be_16_bits)
 
 STATIC_ASSERT (sizeof(UI_32)==4, UI_32_must_be_32_bits)
 
 STATIC_ASSERT (sizeof(I_8)==1, I_8_must_be_8_bits)
 
 STATIC_ASSERT (sizeof(I_16)==2, I_16_must_be_16_bits)
 
 STATIC_ASSERT (sizeof(I_32)==4, I_32_must_be_32_bits)
 

Detailed Description

IMS: ccNOos, Declarations for straight C and C++

Copyright 2021 InMechaSol, Inc

Licensed under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Notes: (.c includes .h) - for straight C or (.cpp includes .c which includes .h) - for C++ wrapped straight C Always compiled to a single compilation unit, either C or CPP, not both

Definition in file version_config.h.

Macro Definition Documentation

◆ __C_NOos_MAINnSYSTICK_TEMPLATE

#define __C_NOos_MAINnSYSTICK_TEMPLATE
Value:
ccNOosVersionsTemplate \
int main()\
{\
applicationConfig();\
return ExecuteMain(&exeSystem, &exeEntryPoints);\
}\
void SysTickISRCallback(void);\
void SysTickISRCallback(void)\
{\
ExecuteSysTick(&exeSystem, &exeEntryPoints);\
}

Definition at line 342 of file version_config.h.

◆ __C_OS_MAIN_TEMPLATE

#define __C_OS_MAIN_TEMPLATE
Value:
ccNOosVersionsTemplate \
int main(int argc, char** argv)\
{\
clock_t tlast = clock();\
clock_t tnow, tdelta;\
UI_32* uSecTicksPtr = &exeSystem.uSecTicks;\
UI_32* hourTicksPtr = &exeSystem.hourTicks;\
applicationConfig();\
ExecuteSetup(&exeSystem, &exeEntryPoints);\
for (;;)\
{\
tnow = clock();\
if (tnow >= tlast)\
tdelta = tnow - tlast;\
else\
tdelta = tnow + (LONG_MAX - tlast);\
tlast = tnow;\
(*uSecTicksPtr) += tdelta * uSEC_PER_CLOCK;\
if ((*uSecTicksPtr) >= TIME_uS_PER_HR)\
{\
(*uSecTicksPtr) = 0u;\
(*hourTicksPtr)++;\
}\
ExecuteLoop(&exeSystem, &exeEntryPoints);\
}\
return RETURN_ERROR;\
}

Definition at line 356 of file version_config.h.

◆ __CLEAR_MODULE_ERRORS

#define __CLEAR_MODULE_ERRORS (   mNAME)    __MODdataPTR(mNAME)->compMod.exceptionFlags = 0u

Definition at line 338 of file version_config.h.

◆ __IF_MODULE_ERROR

#define __IF_MODULE_ERROR (   mNAME)    if(__MODdataPTR(mNAME)->compMod.exceptionFlags != 0u)

Definition at line 334 of file version_config.h.

◆ __MODdataINST

#define __MODdataINST (   mNAME)    mNAME##Data

Definition at line 239 of file version_config.h.

◆ __MODdataPTR

#define __MODdataPTR (   mNAME)    mNAME##DataPtrIn

Definition at line 243 of file version_config.h.

◆ __MODDATAPTR_ERROR_RETURN

#define __MODDATAPTR_ERROR_RETURN (   mNAME)
Value:
__MODdeclarePTRIN(mNAME) = ( ( __MODdeclareSTRUCT(mNAME)* )(compModPtrIn));\
if (__MODdataPTR(mNAME) == nullptr)\
return RETURN_ERROR;

Definition at line 327 of file version_config.h.

◆ __MODDATAPTR_RETURN

#define __MODDATAPTR_RETURN (   mNAME)
Value:
__MODdeclarePTRIN(mNAME) = ( ( __MODdeclareSTRUCT(mNAME)* )(compModPtrIn));\
if (__MODdataPTR(mNAME) == nullptr)\
return;

Definition at line 319 of file version_config.h.

◆ __MODdeclareCREATE

#define __MODdeclareCREATE (   mNAME)    __MODdeclareSTRUCT(mNAME) __MODstructCREATE(mNAME)

Definition at line 291 of file version_config.h.

◆ __MODdeclareDATA

#define __MODdeclareDATA (   mNAME)    struct __MODstructTYPEname(mNAME) __MODdataINST(mNAME)

Definition at line 287 of file version_config.h.

◆ __MODdeclareLOOP

#define __MODdeclareLOOP (   mNAME)    int __MODloop(mNAME) ( struct computeModuleStruct* compModPtrIn )

Definition at line 299 of file version_config.h.

◆ __MODdeclarePARSEi

#define __MODdeclarePARSEi (   mNAME)    void __MODparseINPUT(mNAME) ( struct computeModuleStruct* compModPtrIn, struct uiStruct* uiStructPtrIn )

Definition at line 307 of file version_config.h.

◆ __MODdeclarePRINTm

#define __MODdeclarePRINTm (   mNAME)    void __MODprintMENU(mNAME) ( struct computeModuleStruct* compModPtrIn, struct uiStruct* uiStructPtrIn )

Definition at line 303 of file version_config.h.

◆ __MODdeclarePTRIN

#define __MODdeclarePTRIN (   mNAME)    struct __MODstructTYPEname(mNAME)* __MODdataPTR(mNAME)

Definition at line 283 of file version_config.h.

◆ __MODdeclareSETUP

#define __MODdeclareSETUP (   mNAME)    int __MODsetup(mNAME) ( struct computeModuleStruct* compModPtrIn )

Definition at line 295 of file version_config.h.

◆ __MODdeclareSTRUCT

#define __MODdeclareSTRUCT (   mNAME)    struct __MODstructTYPEname(mNAME)

Definition at line 276 of file version_config.h.

◆ __MODdeclareSYSTICK

#define __MODdeclareSYSTICK (   mNAME)    void __MODsystick(mNAME) ( struct computeModuleStruct* compModPtrIn )

Definition at line 311 of file version_config.h.

◆ __MODloop

#define __MODloop (   mNAME)    loop_##mNAME

Definition at line 251 of file version_config.h.

◆ __MODparseINPUT

#define __MODparseINPUT (   mNAME)    parseI_##mNAME

Definition at line 263 of file version_config.h.

◆ __MODprintMENU

#define __MODprintMENU (   mNAME)    printM_##mNAME

Definition at line 259 of file version_config.h.

◆ __MODsetup

#define __MODsetup (   mNAME)    setup_##mNAME

Definition at line 247 of file version_config.h.

◆ __MODstructCREATE

#define __MODstructCREATE (   mNAME)    Create##mNAME##Struct

Definition at line 267 of file version_config.h.

◆ __MODstructTYPEname

#define __MODstructTYPEname (   mNAME)    mNAME##Struct

Definition at line 235 of file version_config.h.

◆ __MODsystick

#define __MODsystick (   mNAME)    systick_##mNAME

Definition at line 255 of file version_config.h.

◆ C_NOos_MAINnSYSTICK_TEMPLATE

#define C_NOos_MAINnSYSTICK_TEMPLATE   __C_NOos_MAINnSYSTICK_TEMPLATE

Definition at line 353 of file version_config.h.

◆ C_OS_MAIN_TEMPLATE

#define C_OS_MAIN_TEMPLATE   __C_OS_MAIN_TEMPLATE

Definition at line 383 of file version_config.h.

◆ ccNOos_BuildNumber

#define ccNOos_BuildNumber   0

Definition at line 32 of file version_config.h.

◆ ccNOos_DevString

#define ccNOos_DevString   dev

Definition at line 34 of file version_config.h.

◆ ccNOos_MajorVer

#define ccNOos_MajorVer   0

Definition at line 30 of file version_config.h.

◆ ccNOos_MinorVer

#define ccNOos_MinorVer   0

Definition at line 31 of file version_config.h.

◆ ccNOos_VerDate

#define ccNOos_VerDate   08JAN2021

Definition at line 35 of file version_config.h.

◆ ccNOos_VersionNumber

Definition at line 60 of file version_config.h.

◆ ccNOosVersionsTemplate

#define ccNOosVersionsTemplate
Value:
const char* ccNOosccNOos_VerString()\
{\
}\
{\
return xstr(ccNOos_VerDate);\
}

Definition at line 66 of file version_config.h.

◆ charBuffMax

#define charBuffMax   128

Definition at line 78 of file version_config.h.

◆ CLEAR_MODULE_ERRORS

#define CLEAR_MODULE_ERRORS (   mNAME)    __CLEAR_MODULE_ERRORS(mNAME)

Definition at line 339 of file version_config.h.

◆ COMPMODFIRST

#define COMPMODFIRST   struct computeModuleStruct compMod

Definition at line 280 of file version_config.h.

◆ CTASTR

#define CTASTR (   pre,
  post 
)    CTASTR2(pre,post)

Definition at line 42 of file version_config.h.

◆ CTASTR2

#define CTASTR2 (   pre,
  post 
)    pre ## post

Definition at line 41 of file version_config.h.

◆ IF_MODULE_ERROR

#define IF_MODULE_ERROR (   mNAME)    __IF_MODULE_ERROR( mNAME )

Definition at line 335 of file version_config.h.

◆ MODdataINST

#define MODdataINST (   mNAME)    __MODdataINST(mNAME)

Definition at line 240 of file version_config.h.

◆ MODdataPTR

#define MODdataPTR (   mNAME)    __MODdataPTR(mNAME)

Definition at line 244 of file version_config.h.

◆ MODDATAPTR_ERROR_RETURN

#define MODDATAPTR_ERROR_RETURN (   mNAME)    __MODDATAPTR_ERROR_RETURN(mNAME)

Definition at line 331 of file version_config.h.

◆ MODDATAPTR_RETURN

#define MODDATAPTR_RETURN (   mNAME)    __MODDATAPTR_RETURN(mNAME)

Definition at line 323 of file version_config.h.

◆ MODdeclareCREATE

#define MODdeclareCREATE (   mNAME)    __MODdeclareCREATE(mNAME)

Definition at line 292 of file version_config.h.

◆ MODdeclareDATA

#define MODdeclareDATA (   mNAME)    __MODdeclareDATA(mNAME)

Definition at line 288 of file version_config.h.

◆ MODdeclareLOOP

#define MODdeclareLOOP (   mNAME)    __MODdeclareLOOP(mNAME)

Definition at line 300 of file version_config.h.

◆ MODdeclarePARSEi

#define MODdeclarePARSEi (   mNAME)    __MODdeclarePARSEi(mNAME)

Definition at line 308 of file version_config.h.

◆ MODdeclarePRINTm

#define MODdeclarePRINTm (   mNAME)    __MODdeclarePRINTm(mNAME)

Definition at line 304 of file version_config.h.

◆ MODdeclarePTRIN

#define MODdeclarePTRIN (   mNAME)    __MODdeclarePTRIN(mNAME)

Definition at line 284 of file version_config.h.

◆ MODdeclareSETUP

#define MODdeclareSETUP (   mNAME)    __MODdeclareSETUP(mNAME)

Definition at line 296 of file version_config.h.

◆ MODdeclareSTRUCT

#define MODdeclareSTRUCT (   mNAME)    __MODdeclareSTRUCT(mNAME)

Definition at line 277 of file version_config.h.

◆ MODdeclareSYSTICK

#define MODdeclareSYSTICK (   mNAME)    __MODdeclareSYSTICK(mNAME)

Definition at line 312 of file version_config.h.

◆ MODloop

#define MODloop (   mNAME)    __MODloop(mNAME)

Definition at line 252 of file version_config.h.

◆ MODparseINPUT

#define MODparseINPUT (   mNAME)    __MODparseINPUT(mNAME)

Definition at line 264 of file version_config.h.

◆ MODprintMENU

#define MODprintMENU (   mNAME)    __MODprintMENU(mNAME)

Definition at line 260 of file version_config.h.

◆ MODsetup

#define MODsetup (   mNAME)    __MODsetup(mNAME)

Definition at line 248 of file version_config.h.

◆ MODstructCREATE

#define MODstructCREATE (   mNAME)    __MODstructCREATE(mNAME)

Definition at line 268 of file version_config.h.

◆ MODstructTYPEname

#define MODstructTYPEname (   mNAME)    __MODstructTYPEname(mNAME)

Definition at line 236 of file version_config.h.

◆ MODsystick

#define MODsystick (   mNAME)    __MODsystick(mNAME)

Definition at line 256 of file version_config.h.

◆ nullptr

#define nullptr   (0u)

Definition at line 200 of file version_config.h.

◆ RETURN_ERROR

#define RETURN_ERROR   (-1)

Function Return Value for ERROR.

Definition at line 92 of file version_config.h.

◆ RETURN_SUCCESS

#define RETURN_SUCCESS   (0)

Function Return Value for Success.

Definition at line 87 of file version_config.h.

◆ STATIC_ASSERT

#define STATIC_ASSERT (   cond,
  msg 
)
Value:
typedef struct { int CTASTR(static_assertion_failed_,msg) : !!(cond); } \
CTASTR(static_assertion_failed_,__COUNTER__)

Definition at line 43 of file version_config.h.

◆ str

#define str (   s)    #s

Definition at line 51 of file version_config.h.

◆ ui8FALSE

#define ui8FALSE   (0u)

Definition at line 190 of file version_config.h.

◆ ui8TRUE

#define ui8TRUE   (1u)

Definition at line 191 of file version_config.h.

◆ xstr

#define xstr (   s)    str(s)

Definition at line 50 of file version_config.h.

Function Documentation

◆ ccNOosccNOos_VerDateString()

const char* ccNOosccNOos_VerDateString ( )

◆ ccNOosccNOos_VerString()

const char* ccNOosccNOos_VerString ( )

◆ STATIC_ASSERT() [1/6]

STATIC_ASSERT ( sizeof(I_16)  = =2,
I_16_must_be_16_bits   
)

◆ STATIC_ASSERT() [2/6]

STATIC_ASSERT ( sizeof(I_32)  = =4,
I_32_must_be_32_bits   
)

◆ STATIC_ASSERT() [3/6]

STATIC_ASSERT ( sizeof(I_8)  = =1,
I_8_must_be_8_bits   
)

◆ STATIC_ASSERT() [4/6]

STATIC_ASSERT ( sizeof(UI_16)  = =2,
UI_16_must_be_16_bits   
)

◆ STATIC_ASSERT() [5/6]

STATIC_ASSERT ( sizeof(UI_32)  = =4,
UI_32_must_be_32_bits   
)

◆ STATIC_ASSERT() [6/6]

STATIC_ASSERT ( sizeof(UI_8)  = =1,
UI_8_must_be_8_bits   
)
ccNOos_VerDate
#define ccNOos_VerDate
Definition: version_config.h:35
ccNOosccNOos_VerString
const char * ccNOosccNOos_VerString()
__MODdeclarePTRIN
#define __MODdeclarePTRIN(mNAME)
Definition: version_config.h:283
__MODdataPTR
#define __MODdataPTR(mNAME)
Definition: version_config.h:243
CTASTR
#define CTASTR(pre, post)
Definition: version_config.h:42
SysTickISRCallback
void SysTickISRCallback()
uSEC_PER_CLOCK
#define uSEC_PER_CLOCK
Definition: Platform_Arduino.h:45
ExecuteMain
int ExecuteMain(struct executionSystemStruct *exeStructIn, struct executionEntryStruct *exeEntryPtrsIn)
Definition: execution_system.c:112
ccNOosccNOos_VerDateString
const char * ccNOosccNOos_VerDateString()
xstr
#define xstr(s)
Definition: version_config.h:50
ccNOos_VersionNumber
#define ccNOos_VersionNumber
Definition: version_config.h:60
TIME_uS_PER_HR
#define TIME_uS_PER_HR
Definition: execution_system.h:35
RETURN_ERROR
#define RETURN_ERROR
Function Return Value for ERROR.
Definition: version_config.h:92
__MODdeclareSTRUCT
#define __MODdeclareSTRUCT(mNAME)
Definition: version_config.h:276