summaryrefslogtreecommitdiff
path: root/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/util/util.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2020-12-20 15:18:02 +0100
committerjaseg <git@jaseg.de>2020-12-20 15:18:02 +0100
commit94f94260ace13688285fc8c62687079b26c18854 (patch)
tree4691249052e28be4d3515c6d2ed4b40545c21ea7 /fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/util/util.h
parent3559d845d29272050d4d44e18e0bb84e676e48ff (diff)
downloadminikbd-94f94260ace13688285fc8c62687079b26c18854.tar.gz
minikbd-94f94260ace13688285fc8c62687079b26c18854.tar.bz2
minikbd-94f94260ace13688285fc8c62687079b26c18854.zip
Submodule-cache WIP
Diffstat (limited to 'fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/util/util.h')
-rw-r--r--fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/util/util.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/util/util.h b/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/util/util.h
deleted file mode 100644
index f56e0e6..0000000
--- a/fw/midi-dials/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/JTest/inc/util/util.h
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef _UTIL_H_
-#define _UTIL_H_
-
-/*--------------------------------------------------------------------------------*/
-/* Macros and Defines */
-/*--------------------------------------------------------------------------------*/
-
-/**
- * Convert a symbol to a string and add a 'NewLine'.
- */
-#define STR_NL(x) STR1_NL(x)
-#define STR1_NL(x) (STR2_NL(x)"\n")
-#define STR2_NL(x) #x
-
-/**
- * Convert a symbol to a string.
- */
-#define STR(x) STR1(x)
-#define STR1(x) STR2(x)
-#define STR2(x) #x
-
-/**
- * Concatenate two symbols.
- */
-#define CONCAT(a, b) CONCAT1(a, b)
-#define CONCAT1(a, b) CONCAT2(a, b)
-#define CONCAT2(a, b) a##b
-
-
-/**
- * Place curly braces around a varaible number of macro arguments.
- */
-#define CURLY(...) {__VA_ARGS__}
-
-/**
- * Place parenthesis around a variable number of macro arguments.
- */
-#define PAREN(...) (__VA_ARGS__)
-
-/* Standard min/max macros. */
-#define MIN(x,y) (((x) < (y)) ? (x) : (y) )
-#define MAX(x,y) (((x) > (y)) ? (x) : (y) )
-
-/**
- * Bound value using low and high limits.
- *
- * Evaluate to a number in the range, endpoint inclusive.
- */
-#define BOUND(low, high, value) \
- MAX(MIN(high, value), low)
-
-#endif /* _UTIL_H_ */