diff options
Diffstat (limited to 'Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_HeartRate/Core/Inc/app_common.h')
-rw-r--r-- | Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_HeartRate/Core/Inc/app_common.h | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_HeartRate/Core/Inc/app_common.h b/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_HeartRate/Core/Inc/app_common.h index 7e66ee35a..cf8a5baa6 100644 --- a/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_HeartRate/Core/Inc/app_common.h +++ b/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_HeartRate/Core/Inc/app_common.h @@ -1,30 +1,29 @@ +/* USER CODE BEGIN Header */ /** ****************************************************************************** - * @file app_common.h - * @author MCD Application Team - * @brief Common - ****************************************************************************** - * @attention - * - * <h2><center>© Copyright (c) 2019 STMicroelectronics. - * All rights reserved.</center></h2> - * - * This software component is licensed by ST under Ultimate Liberty license - * SLA0044, the "License"; You may not use this file except in compliance with - * the License. You may obtain a copy of the License at: - * www.st.com/SLA0044 - * - ****************************************************************************** - */ - - + * File Name : app_common.h + * Description : App Common application configuration file for STM32WPAN Middleware. + * + ****************************************************************************** + * @attention + * + * <h2><center>© Copyright (c) 2020 STMicroelectronics. + * All rights reserved.</center></h2> + * + * This software component is licensed by ST under Ultimate Liberty license + * SLA0044, the "License"; You may not use this file except in compliance with + * the License. You may obtain a copy of the License at: + * www.st.com/SLA0044 + * + ****************************************************************************** + */ +/* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __APP_COMMON_H -#define __APP_COMMON_H +#ifndef APP_COMMON_H +#define APP_COMMON_H #ifdef __cplusplus -extern "C" -{ +extern "C"{ #endif #include <stdint.h> @@ -83,9 +82,8 @@ extern "C" #define MODSUB( a, b, m ) MODADD( a, (m)-(b), m ) - #define PAUSE( t ) M_BEGIN \ - volatile int _i; \ + __IO int _i; \ for ( _i = t; _i > 0; _i -- ); \ M_END @@ -112,11 +110,10 @@ extern "C" #define ALIGN(n) __attribute__((aligned(n))) #endif - #ifdef __cplusplus -} +} /* extern "C" */ #endif -#endif /*__APP_COMMON_H */ +#endif /*APP_COMMON_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |