diff options
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Inc/app_conf.h')
-rw-r--r-- | Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Inc/app_conf.h | 38 |
1 files changed, 8 insertions, 30 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Inc/app_conf.h b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Inc/app_conf.h index f4f5a3857..27c0fa67b 100644 --- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Inc/app_conf.h +++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Inc/app_conf.h @@ -29,6 +29,9 @@ /****************************************************************************** * Application Config ******************************************************************************/ +#define CFG_HS_STARTUP_TIME 0x0099 /* Start up time of the high speed oscillator in system time units (625/256us) */ + +#define CFG_BACK2BACK_TIME 200 /* Back to back time (us) */ /****************************************************************************** * Transport Layer @@ -56,7 +59,7 @@ * Select UART interfaces */ #define CFG_DEBUG_TRACE_UART hw_lpuart1 -#define CFG_CLI_UART hw_uart1 +#define CFG_UART hw_uart1 /****************************************************************************** * USB interface @@ -77,12 +80,14 @@ * ******************************************************************************/ #define CFG_LPM_SUPPORTED 0 - + #ifdef BLE_LLD_LP #undef CFG_LPM_SUPPORTED #define CFG_LPM_SUPPORTED 1 #endif +#define CFG_PWR_MODE_STOP LL_PWR_MODE_STOP2 + /****************************************************************************** * Timer Server ******************************************************************************/ @@ -181,11 +186,6 @@ typedef enum */ #define CFG_DEBUGGER_SUPPORTED 1 -#if (CFG_LPM_SUPPORTED == 1) -#undef CFG_DEBUGGER_SUPPORTED -#define CFG_DEBUGGER_SUPPORTED 0 -#endif - /***************************************************************************** * Traces * Enable or Disable traces in application @@ -196,11 +196,6 @@ typedef enum *****************************************************************************/ #define CFG_DEBUG_TRACE 1 -#if (CFG_LPM_SUPPORTED == 1) -#undef CFG_DEBUG_TRACE -#define CFG_DEBUG_TRACE 0 -#endif - /** * 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 @@ -249,24 +244,9 @@ typedef enum * When CFG_LED_SUPPORTED is set, LEDS are activated if requested * When CFG_BUTTON_SUPPORTED is set, the push button are activated if requested ******************************************************************************/ -#if (CFG_LPM_SUPPORTED == 1) -#define CFG_LED_SUPPORTED 0 -#define CFG_BUTTON_SUPPORTED 0 -#else #define CFG_LED_SUPPORTED 1 #define CFG_BUTTON_SUPPORTED 1 -#endif - -#ifdef STM32WB35xx -#define PUSH_BUTTON_SW1_EXTI_IRQHandler EXTI0_IRQHandler -#define PUSH_BUTTON_SW2_EXTI_IRQHandler EXTI4_IRQHandler -#define PUSH_BUTTON_SW3_EXTI_IRQHandler EXTI9_5_IRQHandler -#else -#define PUSH_BUTTON_SW1_EXTI_IRQHandler EXTI4_IRQHandler -#define PUSH_BUTTON_SW2_EXTI_IRQHandler EXTI0_IRQHandler -#define PUSH_BUTTON_SW3_EXTI_IRQHandler EXTI1_IRQHandler -#endif /* USER CODE END Defines */ /****************************************************************************** @@ -282,10 +262,8 @@ typedef enum CFG_TASK_CMD_FROM_M0_TO_M4, CFG_TASK_SEND_CLI_TO_M0, CFG_TASK_SEND_TO_M0, - CFG_TASK_HAL_BLE_INIT, /* USER CODE BEGIN IdleTask */ - CFG_TASK_HAL_BLE_SENDPACKET, - CFG_TASK_HAL_BLE_RECEIVEPACKET, + CFG_TASK_BUTTON, /* USER CODE END IdleTask */ CFG_TASK_SYSTEM_HCI_ASYNCH_EVT, CFG_TASK_PROCESS_UART_RX_BUFFER, |