/** ****************************************************************************** * @file lorawan_conf_template.h * @author MCD Application Team * @brief Header for LoRaWAN middleware instances ****************************************************************************** * @attention * * <h2><center>© Copyright (c) 2020 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __LORAWAN_CONF_H__ #define __LORAWAN_CONF_H__ #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32_systime.h" #include "sys_app.h" /* needed for APP_PRINTF */ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* Region ------------------------------------*/ /* the region listed here will be linked in the MW code */ /* the applic (on sys_conf.h) shall just configure one region at the time */ /*#define REGION_AS923*/ /*#define REGION_AU915*/ /*#define REGION_CN470*/ /*#define REGION_CN779*/ /*#define REGION_EU433*/ #define REGION_EU868 /*#define REGION_KR920*/ /*#define REGION_IN865*/ #define REGION_US915 /*#define REGION_RU864*/ #define HYBRID_ENABLED 0 #define KEY_LOG_ENABLED 1 /* Class B ------------------------------------*/ #define LORAMAC_CLASSB_ENABLED 0 #if ( LORAMAC_CLASSB_ENABLED == 1 ) /* CLASS B LSE crystall calibration*/ /** * \brief Temperature coefficient of the clock source */ #define RTC_TEMP_COEFFICIENT ( -0.035 ) /** * \brief Temperature coefficient deviation of the clock source */ #define RTC_TEMP_DEV_COEFFICIENT ( 0.0035 ) /** * \brief Turnover temperature of the clock source */ #define RTC_TEMP_TURNOVER ( 25.0 ) /** * \brief Turnover temperature deviation of the clock source */ #define RTC_TEMP_DEV_TURNOVER ( 5.0 ) #endif /* LORAMAC_CLASSB_ENABLED == 1 */ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* External variables --------------------------------------------------------*/ /* USER CODE BEGIN EV */ /* USER CODE END EV */ /* Exported macro ------------------------------------------------------------*/ #ifndef CRITICAL_SECTION_BEGIN #define CRITICAL_SECTION_BEGIN( ) UTILS_ENTER_CRITICAL_SECTION( ) #endif /* !CRITICAL_SECTION_BEGIN */ #ifndef CRITICAL_SECTION_END #define CRITICAL_SECTION_END( ) UTILS_EXIT_CRITICAL_SECTION( ) #endif /* !CRITICAL_SECTION_END */ /* USER CODE BEGIN EM */ /* USER CODE END EM */ /* Exported functions prototypes ---------------------------------------------*/ /* USER CODE BEGIN EFP */ /* USER CODE END EFP */ #ifdef __cplusplus } #endif #endif /* __LORAWAN_CONF_H__ */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/