Add H5 and H7 to health monitor

This commit is contained in:
cpq committed 2026-10-08 15:15:11 +01:00
1 parent 16a5a7d9fb
commit eda9a5726c
6 files changed
+19 -11

No files matched your search

+5 -1
View File
@@ -4927,6 +4927,10 @@ void mg_ota_poll(struct mg_mgr *);
#define MG_HEALTH_MAGIC {'M', 'G', 'H', '3'} // '3' is the layout version
#endif
#if !defined(MG_HEALTH_RAM) && (defined(STM32H7_DEV_ID) || defined(STM32H5))
#define MG_HEALTH_RAM __attribute__((section(".mg_health")))
#endif
// Places the record in RAM that survives a reset. Define in mongoose_config.h
// to match the linker script, e.g. __attribute__((section(".mg_health")))
#ifndef MG_HEALTH_RAM
@@ -4948,7 +4952,7 @@ enum mg_health_reason {
};
#ifndef MG_HEALTH_DATA_SIZE
#define MG_HEALTH_DATA_SIZE 20
#define MG_HEALTH_DATA_SIZE 250
#endif
struct mg_health {