Mercurial > public > ostc4
diff Discovery/Inc/tMenuSystem.h @ 1017:5924a2d1d3ba GasConsumption
Prepare custom block update function:
In the flash area of the font lib some sectors may be used for custom data or a boot updater image. With this change a flash option is added to the maintainance menu.
IMPORTANT: The fimwareEraseProgram.c is needed for compiling the firmware now => Add it e.g. by adding a link from the OtherSources location to your source folder.
| author | Ideenmodellierer |
|---|---|
| date | Thu, 29 May 2025 22:04:46 +0200 |
| parents | 21142f4fa968 |
| children |
line wrap: on
line diff
--- a/Discovery/Inc/tMenuSystem.h Sun May 11 16:18:20 2025 +0200 +++ b/Discovery/Inc/tMenuSystem.h Thu May 29 22:04:46 2025 +0200 @@ -36,6 +36,16 @@ * @{ */ +#define CUSTOM_BLOCK_INFO_ADDR (0x0811FFF0) + +typedef struct +{ + uint32_t Reserved; /* for future use */ + uint32_t Type; /* type => block purpose */ + uint32_t fletcher; /* fletcher check sum */ + uint32_t length; /* length of block starting from 0x08100000 */ +} customBlockInfo_t; + void set_CustomsviewsSubpage(uint8_t page); /* Exported variables --------------------------------------------------------*/
