Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/Core/Src/app_entry.c')
-rw-r--r--Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/Core/Src/app_entry.c52
1 files changed, 5 insertions, 47 deletions
diff --git a/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/Core/Src/app_entry.c b/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/Core/Src/app_entry.c
index 2129b9049..d067a0077 100644
--- a/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/Core/Src/app_entry.c
+++ b/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/Core/Src/app_entry.c
@@ -28,7 +28,7 @@
#include "stm32_seq.h"
#include "shci_tl.h"
#include "stm32_lpm.h"
-#include "dbg_trace.h"
+#include "app_debug.h"
/* Private includes -----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
@@ -68,7 +68,6 @@ static void SystemPower_Config( void );
static void appe_Tl_Init( void );
static void APPE_SysStatusNot( SHCI_TL_CmdStatus_t status );
static void APPE_SysUserEvtRx( void * pPayload );
-static void Init_Debug( void );
/* USER CODE BEGIN PFP */
@@ -82,8 +81,8 @@ void APPE_Init( void )
HW_TS_Init(hw_ts_InitMode_Full, &hrtc); /**< Initialize the TimerServer */
/* USER CODE BEGIN APPE_Init_1 */
- Init_Debug();
-
+ APPD_Init();
+
/**
* The Standby mode should not be entered before the initialization is over
* The default state of the Low Power Manager is to allow the Standby Mode so an request is needed here
@@ -115,47 +114,6 @@ void APPE_Init( void )
* LOCAL FUNCTIONS
*
*************************************************************/
-static void Init_Debug( void )
-{
-#if (CFG_DEBUGGER_SUPPORTED == 1)
- /**
- * Keep debugger enabled while in any low power mode
- */
- HAL_DBGMCU_EnableDBGSleepMode();
-
- /***************** ENABLE DEBUGGER *************************************/
- LL_EXTI_EnableIT_32_63(LL_EXTI_LINE_48);
- LL_C2_EXTI_EnableIT_32_63(LL_EXTI_LINE_48);
-
-#else
-
- GPIO_InitTypeDef gpio_config = {0};
-
- gpio_config.Pull = GPIO_NOPULL;
- gpio_config.Mode = GPIO_MODE_ANALOG;
-
- gpio_config.Pin = GPIO_PIN_15 | GPIO_PIN_14 | GPIO_PIN_13;
- __HAL_RCC_GPIOA_CLK_ENABLE();
- HAL_GPIO_Init(GPIOA, &gpio_config);
- __HAL_RCC_GPIOA_CLK_DISABLE();
-
- gpio_config.Pin = GPIO_PIN_4 | GPIO_PIN_3;
- __HAL_RCC_GPIOB_CLK_ENABLE();
- HAL_GPIO_Init(GPIOB, &gpio_config);
- __HAL_RCC_GPIOB_CLK_DISABLE();
-
- HAL_DBGMCU_DisableDBGSleepMode();
- HAL_DBGMCU_DisableDBGStopMode();
- HAL_DBGMCU_DisableDBGStandbyMode();
-
-#endif /* (CFG_DEBUGGER_SUPPORTED == 1) */
-
-#if(CFG_DEBUG_TRACE != 0)
- DbgTraceInit();
-#endif
-
- return;
-}
/**
* @brief Configure the system for power optimization
@@ -235,7 +193,7 @@ static void APPE_SysUserEvtRx( void * pPayload )
{
UNUSED(pPayload);
/* Traces channel initialization */
- TL_TRACES_Init( );
+ APPD_EnableCPU2( );
APP_BLE_Init( );
UTIL_LPM_SetOffMode(1U << CFG_LPM_APP, UTIL_LPM_ENABLE);
@@ -334,7 +292,7 @@ void HAL_GPIO_EXTI_Callback( uint16_t GPIO_Pin )
break;
case BUTTON_SW3_PIN:
- UTIL_SEQ_SetTask( 1<<CFG_TASK_SW3_BUTTON_PUSHED_ID, CFG_SCH_PRIO_0);
+ //UTIL_SEQ_SetTask( 1<<CFG_TASK_SW3_BUTTON_PUSHED_ID, CFG_SCH_PRIO_0);
APP_BLE_Key_Button3_Action();
break;