-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* play(...) * established getn<N> * premake: lib by cfg * getn template * mainly: ComName -> ComAddr * bullseye coverage macros incl. B() whitch works * minimal corrections * update sompy / gitHooks * moved submodules * bullseye scripts * progress * E_Select * interim * interim * gcc & vs running; todo: remove redundant luas * interim * bullseye ok; to other scripts * progress; to ci scripts * shoud work; toto: md rework * ci fix
- Loading branch information
Showing
82 changed files
with
1,282 additions
and
1,577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# all text files unix line endings | ||
* text=auto eol=lf | ||
|
||
*.cmd eol=crlf | ||
*.bat eol=crlf | ||
*.svg text eol=lf | ||
*.mdj text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,7 @@ | |
*.app | ||
|
||
# premake / build | ||
Makefile | ||
build | ||
bin | ||
obj | ||
lib | ||
exe | ||
.vs | ||
*.vcxproj.* | ||
*.vcxproj | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[submodule "cpputest"] | ||
path = cpputest | ||
path = submodules/cpputest | ||
url = [email protected]:cpputest/cpputest.git | ||
[submodule "CppUTestSteps"] | ||
path = CppUTestSteps | ||
path = submodules/CppUTestSteps | ||
url = [email protected]:sorgom/CppUTestSteps.git | ||
branch = dev | ||
[submodule "sompy"] | ||
path = sompy | ||
path = submodules/sompy | ||
url = [email protected]:sorgom/sompy.git | ||
branch = dev | ||
[submodule "sombin"] | ||
path = submodules/sombin | ||
url = [email protected]:sorgom/sombin.git | ||
branch = dev |
30 changes: 15 additions & 15 deletions
30
application/components/BAS/NcpIndex.h → application/components/BAS/AcpIndex.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
// ============================================================ | ||
// name, component, position | ||
// addr, component, position | ||
// ============================================================ | ||
// created by Manfred Sorgo | ||
|
||
#pragma once | ||
#ifndef NCPINDEX_H | ||
#define NCPINDEX_H | ||
#ifndef ACPINDEX_H | ||
#define ACPINDEX_H | ||
|
||
#include <BAS/coding.h> | ||
#include <BAS/Containers.h> | ||
#include <ifs/DataTypes.h> | ||
|
||
#include <codebase/packBegin.h> | ||
|
||
struct Ncp | ||
struct Acp | ||
{ | ||
const ComName name; | ||
const ComAddr addr; | ||
const UINT8 comp; | ||
const size_t pos; | ||
inline Ncp( | ||
const ComName& name, | ||
inline Acp( | ||
const ComAddr& addr, | ||
UINT8 comp = 0, | ||
size_t pos = 0 | ||
): | ||
name(name), | ||
addr(addr), | ||
comp(comp), | ||
pos(pos) | ||
{} | ||
NOCOPY(Ncp) | ||
NOCOPY(Acp) | ||
}; | ||
|
||
#include <codebase/packEnd.h> | ||
|
||
// ============================================================ | ||
// class NcpIndex is the core of Dispatcher | ||
// class AcpIndex is the core of Dispatcher | ||
// see interface I_Dispatcher | ||
// ============================================================ | ||
class NcpIndex : public Index<const ComName&, Ncp> | ||
class AcpIndex : public Index<const ComAddr&, Acp> | ||
{ | ||
public: | ||
inline NcpIndex() = default; | ||
NOCOPY(NcpIndex) | ||
inline AcpIndex() = default; | ||
NOCOPY(AcpIndex) | ||
|
||
protected: | ||
inline const ComName& getKey(const Ncp& ncp) const final | ||
inline const ComAddr& getKey(const Acp& acp) const final | ||
{ | ||
return ncp.name; | ||
return acp.addr; | ||
} | ||
}; | ||
#endif // _H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// coverage instrumentation exception handling | ||
// > works with compilers | ||
// that support _Pragma(string-literal) directive | ||
// - documented for: | ||
// - gcc : https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html | ||
// - msvc: https://learn.microsoft.com/en-us/cpp/preprocessor/pragma-directives-and-the-pragma-keyword | ||
|
||
// created by Manfred Sorgo | ||
#pragma once | ||
#ifndef COVERAGE_H | ||
#define COVERAGE_H | ||
|
||
// bullseye coverage | ||
#if _BullseyeCoverage | ||
// pause coverage instrumentation | ||
#define COVERAGE_PAUSE _Pragma("BullseyeCoverage off") | ||
// resume coverage instrumentation | ||
#define COVERAGE_RESUME _Pragma("BullseyeCoverage on") | ||
// force coverage of simple boolean expressions | ||
// by converting them to ternary expressions | ||
#define B(SIMPLE_EXPR) (SIMPLE_EXPR ? true : false) | ||
#else | ||
#define COVERAGE_PAUSE | ||
#define COVERAGE_RESUME | ||
#define B(SIMPLE_EXPR) SIMPLE_EXPR | ||
#endif | ||
|
||
#endif // _H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// ============================================================ | ||
// misc utilities | ||
// ============================================================ | ||
// created by Manfred Sorgo | ||
#pragma once | ||
#ifndef UTILZ_H | ||
#define UTILZ_H | ||
|
||
#include <codebase/BaseTypes.h> | ||
|
||
template <size_t N> | ||
using data_tn = UINT8[N]; | ||
|
||
// get byte subset of an object | ||
template <class T, size_t N, size_t P=0> | ||
inline const data_tn<N>& getn(const T& obj) | ||
{ | ||
static_assert(P + N <= sizeof(T)); | ||
return *(reinterpret_cast<const data_tn<N>*>(&obj) + P); | ||
} | ||
|
||
// get byte subset of ComData | ||
template <size_t N, size_t P=0> | ||
inline const data_tn<N>& getn(const ComData& obj) | ||
{ | ||
return getn<ComData, N, P>(obj); | ||
} | ||
|
||
#endif // _H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.