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/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Router_NVM/Core/Src/app_entry.c')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Router_NVM/Core/Src/app_entry.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Router_NVM/Core/Src/app_entry.c b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Router_NVM/Core/Src/app_entry.c
index a0f0ca79c..4533af8ba 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Router_NVM/Core/Src/app_entry.c
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_OnOff_Router_NVM/Core/Src/app_entry.c
@@ -87,6 +87,7 @@ void APPE_Init( void )
HW_TS_Init(hw_ts_InitMode_Full, &hrtc); /**< Initialize the TimerServer */
+/* USER CODE BEGIN APPE_Init_1 */
Init_Debug();
/**
* The Standby mode should not be entered before the initialization is over
@@ -96,17 +97,21 @@ void APPE_Init( void )
Led_Init();
Button_Init();
RxUART_Init();
- appe_Tl_Init(); /* Initialize all transport layers */
+/* USER CODE END APPE_Init_1 */
+ appe_Tl_Init(); /* Initialize all transport layers */
/**
* From now, the application is waiting for the ready event ( VS_HCI_C2_Ready )
- * received on the system channel before starting the Zigbee Stack
+ * received on the system channel before starting the Stack
* This system event is received with APPE_SysUserEvtRx()
*/
+/* USER CODE BEGIN APPE_Init_2 */
+/* USER CODE END APPE_Init_2 */
return;
}
+
/*************************************************************
*
* LOCAL FUNCTIONS
@@ -228,7 +233,7 @@ static void APPE_SysStatusNot(SHCI_TL_CmdStatus_t status)
* The type of the payload for a system user event is tSHCI_UserEvtRxParam
* When the system event is both :
* - a ready event (subevtcode = SHCI_SUB_EVT_CODE_READY)
- * - reported by the FUS (sysevt_ready_rsp == RSS_FW_RUNNING)
+ * - reported by the FUS (sysevt_ready_rsp == FUS_FW_RUNNING)
* The buffer shall not be released
* ( eg ((tSHCI_UserEvtRxParam*)pPayload)->status shall be set to SHCI_TL_UserEventFlow_Disable )
* When the status is not filled, the buffer is released by default
@@ -260,12 +265,9 @@ static void APPE_SysUserEvtRx( void * pPayload )
*/
static void APPE_SysEvtError( SCHI_SystemErrCode_t ErrorCode)
{
- switch (ErrorCode) // TODO
- {
- case ERR_THREAD_LLD_FATAL_ERROR:
- APP_DBG("** ERR_ZIGBEE : LLD_FATAL_ERROR \n");
- break;
- case ERR_THREAD_UNKNOWN_CMD:
+ switch (ErrorCode)
+ {
+ case ERR_ZIGBEE_UNKNOWN_CMD:
APP_DBG("** ERR_ZIGBEE : UNKNOWN_CMD \n");
break;
default: