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/BLE_Zigbee/BLE_Zigbee_Static/Core/Inc/app_conf.h')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_Zigbee/BLE_Zigbee_Static/Core/Inc/app_conf.h46
1 files changed, 45 insertions, 1 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_Zigbee/BLE_Zigbee_Static/Core/Inc/app_conf.h b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_Zigbee/BLE_Zigbee_Static/Core/Inc/app_conf.h
index ea543c351..0a3695c66 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_Zigbee/BLE_Zigbee_Static/Core/Inc/app_conf.h
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE_Zigbee/BLE_Zigbee_Static/Core/Inc/app_conf.h
@@ -389,6 +389,8 @@
typedef enum
{
CFG_TIM_PROC_ID_ISR,
+ CFG_TIM_WAIT_BEFORE_SWITCH,
+ CFG_TIM_TEST
} CFG_TimProcID_t;
/******************************************************************************
@@ -500,7 +502,8 @@ typedef enum
CFG_TASK_BUTTON_SW1,
/* Concurrent System */
- CFG_Task_Switch_Protocol,
+ CFG_TASK_INIT_SWITCH_PROTOCOL,
+ CFG_TASK_ACTIVATE_PROTOCOL,
CFG_LAST_TASK_ID_WITH_HCICMD, /**< Shall be LAST in the list */
} CFG_Task_Id_With_HCI_Cmd_t;
@@ -542,10 +545,13 @@ typedef enum
CFG_EVT_ACK_FROM_M0_EVT,
CFG_EVT_SYNCHRO_BYPASS_IDLE,
CFG_EVT_ZIGBEE_STOP,
+ CFG_EVT_ZIGBEE_STARTUP_ENDED,
} CFG_IdleEvt_Id_t;
#define EVENT_ACK_FROM_M0_EVT (1U << CFG_EVT_ACK_FROM_M0_EVT)
#define EVENT_SYNCHRO_BYPASS_IDLE (1U << CFG_EVT_SYNCHRO_BYPASS_IDLE)
+#define EVENT_ZIGBEE_STARTUP_ENDED (1U << CFG_EVT_ZIGBEE_STARTUP_ENDED)
+#define EVENT_ZIGBEE_CONTINUE_INIT (1U << CFG_EVT_ZIGBEE_STARTUP_ENDED)
/******************************************************************************
* Configure Log level for Application
******************************************************************************/
@@ -581,6 +587,44 @@ typedef enum
BUTTON_1 = 0x1,
} button_type_t;
+
+/******************************************************************************
+ * NVM
+ ******************************************************************************/
+ /**
+ NVM DEFINES
+ */
+/* CFG_EE_BANK0_SIZE is the size allocated for the EE bank0 it should be
+ the considered as the max Flash size for all computation and <= of the
+ allocated size within the scatterfile in bytes
+
+ CFG_NVM_BASE_ADDRESS : offset to add to the base flash address to get the
+ beginning of the NVM (shall be withon allocation range of scatterfile)
+
+ ST_PERSIST_MAX_ALLOC_SZ : max size of the RAM cache in bytes
+ either an abitrary choice or the CFG_NVM_MAX_SIZE
+
+ ST_PERSIST_FLASH_DATA_OFFSET : offset in bytes of zigbee data
+ (U8[4] for lenght - 1st data[]...)
+ CFG_NB_OF_PAGE : Number of page of flash to use
+
+ CFG_NVM_MAX_SIZE : Max allocable size in byte for NVM
+ Flash size/8 * (number of element by page in byte)
+ ZIGBEE_DB_START_ADDR: beginning of zigbee NVM
+
+ CFG_EE_AUTO_CLEAN : Clean the flash automatically when needed
+*/
+
+#define CFG_NB_OF_PAGE (16U)
+#define CFG_EE_BANK0_SIZE (CFG_NB_OF_PAGE * HW_FLASH_PAGE_SIZE)
+#define CFG_NVM_BASE_ADDRESS ( 0x70000 )
+#define CFG_EE_BANK0_MAX_NB (1000U) // In U32 words
+#define ST_PERSIST_MAX_ALLOC_SZ (4U*CFG_EE_BANK0_MAX_NB) // Max data in bytes
+#define ST_PERSIST_FLASH_DATA_OFFSET (4U)
+#define ZIGBEE_DB_START_ADDR (0U)
+#define CFG_EE_AUTO_CLEAN (1U)
+
+
#endif /* APP_CONF_H */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/