diff options
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Client_Router/Core/Inc/app_common.h')
-rw-r--r-- | Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Client_Router/Core/Inc/app_common.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Client_Router/Core/Inc/app_common.h b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Client_Router/Core/Inc/app_common.h index 200abb160..cf8a5baa6 100644 --- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Client_Router/Core/Inc/app_common.h +++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Client_Router/Core/Inc/app_common.h @@ -1,9 +1,10 @@ +/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : app_common.h * Description : App Common application configuration file for STM32WPAN Middleware. * - ****************************************************************************** + ****************************************************************************** * @attention * * <h2><center>© Copyright (c) 2020 STMicroelectronics. @@ -16,7 +17,7 @@ * ****************************************************************************** */ - +/* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef APP_COMMON_H #define APP_COMMON_H @@ -65,9 +66,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 |