Refactor/ports xplained common dlmstp (#665)

* Refactored ports/xplained to use common DLMSTP module to enable extended frames

* Added floating point compares in cases where they don't exist in math library
This commit is contained in:
Steve Karg
2024-06-04 14:48:40 -05:00
committed by GitHub
parent 17c5e2e98d
commit 4576e41ec3
23 changed files with 247 additions and 1994 deletions
+8
View File
@@ -22,6 +22,14 @@
#define islessgreater(x, y) ((x) < (y) || (x) > (y))
#endif
#ifndef isgreaterequal
#define isgreaterequal(x, y) ((x) > (y) || !islessgreater((x),(y)))
#endif
#ifndef islessequal
#define islessequal(x, y) ((x) < (y) || !islessgreater((x),(y)))
#endif
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) ((size_t)(sizeof(array) / sizeof((array)[0])))
#endif