diff options
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pClient/Core/Inc/app_conf.h')
-rw-r--r-- | Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pClient/Core/Inc/app_conf.h | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pClient/Core/Inc/app_conf.h b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pClient/Core/Inc/app_conf.h index 11216c1f2..67fa9c6d8 100644 --- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pClient/Core/Inc/app_conf.h +++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_p2pClient/Core/Inc/app_conf.h @@ -1,8 +1,9 @@ /** ****************************************************************************** * File Name : app_conf.h - * Description : Application configuration file for BLE middleWare. - ****************************************************************************** + * Description : Application configuration file for STM32WPAN Middleware. + * + ****************************************************************************** * @attention * * <h2><center>© Copyright (c) 2019 STMicroelectronics. @@ -17,17 +18,18 @@ */ /* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef APP_CONFIG_H -#define APP_CONFIG_H +#ifndef APP_CONF_H +#define APP_CONF_H #include "hw.h" #include "hw_conf.h" +#include "hw_if.h" /****************************************************************************** * Application Config ******************************************************************************/ -/**< generic parameters ********************************************************/ +/**< generic parameters ******************************************************/ /** * Define Tx Power @@ -77,9 +79,17 @@ */ #define CFG_BLE_ERK {0xfe,0xdc,0xba,0x09,0x87,0x65,0x43,0x21,0xfe,0xdc,0xba,0x09,0x87,0x65,0x43,0x21} +/* USER CODE BEGIN Generic_Parameters */ +/** + * SMPS supply + * SMPS not used when Set to 0 + * SMPS used when Set to 1 + */ +#define CFG_USE_SMPS 1 +/* USER CODE END Generic_Parameters */ + /**< specific parameters */ /*****************************************************/ -#define PUSH_BUTTON_SW1_EXTI_IRQHandler EXTI4_IRQHandler #define CFG_MAX_CONNECTION 1 #define UUID_128BIT_FORMAT 1 #define CFG_DEV_ID_P2P_SERVER1 (0x83) @@ -94,11 +104,6 @@ #define CONN_L2 (CONN_L(10)) #define OOB_DEMO 1 /* Out Of Box Demo */ -#define CFG_MAX_CONNECTION 1 -#define UUID_128BIT_FORMAT 1 - -#define CFG_DEV_ID_P2P_SERVER1 (0x83) - /****************************************************************************** * BLE Stack ******************************************************************************/ @@ -178,7 +183,7 @@ * 1 : internal RO * 0 : external crystal ( no calibration ) */ -#define CFG_BLE_LSE_SOURCE 1 +#define CFG_BLE_LSE_SOURCE 0 /** * Start up time of the high speed (16 or 32 MHz) crystal oscillator in units of 625/256 us (~2.44 us) @@ -384,12 +389,6 @@ typedef enum #define CFG_LPM_SUPPORTED 0 #define CFG_DEBUGGER_SUPPORTED 1 #endif - -/* USER CODE BEGIN Defines */ -#define CFG_LED_SUPPORTED 1 -#define CFG_BUTTON_SUPPORTED 1 -/* USER CODE END Defines */ - /** * When CFG_DEBUG_TRACE_FULL is set to 1, the trace are output with the API name, the file name and the line number * When CFG_DEBUG_TRACE_LIGHT is set to 1, only the debug message is output @@ -426,6 +425,13 @@ typedef enum #define DBG_TRACE_MSG_QUEUE_SIZE 4096 #define MAX_DBG_TRACE_MSG_SIZE 1024 +/* USER CODE BEGIN Defines */ +#define CFG_LED_SUPPORTED 1 +#define CFG_BUTTON_SUPPORTED 1 + +#define PUSH_BUTTON_SW1_EXTI_IRQHandler EXTI4_IRQHandler +/* USER CODE END Defines */ + /****************************************************************************** * Scheduler ******************************************************************************/ @@ -493,7 +499,10 @@ typedef enum typedef enum { CFG_LPM_APP, - CFG_LPM_APP_BLE + CFG_LPM_APP_BLE, + /* USER CODE BEGIN CFG_LPM_Id_t */ + + /* USER CODE END CFG_LPM_Id_t */ } CFG_LPM_Id_t; /****************************************************************************** @@ -503,6 +512,6 @@ typedef enum #define CFG_OTP_END_ADRESS OTP_AREA_END_ADDR -#endif /*APP_CONFIG_H */ +#endif /*APP_CONF_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |