Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_APS_Router/Core/Inc/app_common.h')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_APS_Router/Core/Inc/app_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_APS_Router/Core/Inc/app_common.h b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_APS_Router/Core/Inc/app_common.h
index 200abb160..15efa6e2e 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_APS_Router/Core/Inc/app_common.h
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_APS_Router/Core/Inc/app_common.h
@@ -65,9 +65,13 @@ extern "C"{
* Some useful macro definitions *
* -------------------------------- */
+#ifndef MAX
#define MAX( x, y ) (((x)>(y))?(x):(y))
+#endif
+#ifndef MIN
#define MIN( x, y ) (((x)<(y))?(x):(y))
+#endif
#define MODINC( a, m ) M_BEGIN (a)++; if ((a)>=(m)) (a)=0; M_END