Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1014:8c0134a287da | 1017:5924a2d1d3ba |
|---|---|
| 34 | 34 |
| 35 /** @addtogroup Template | 35 /** @addtogroup Template |
| 36 * @{ | 36 * @{ |
| 37 */ | 37 */ |
| 38 | 38 |
| 39 #define CUSTOM_BLOCK_INFO_ADDR (0x0811FFF0) | |
| 40 | |
| 41 typedef struct | |
| 42 { | |
| 43 uint32_t Reserved; /* for future use */ | |
| 44 uint32_t Type; /* type => block purpose */ | |
| 45 uint32_t fletcher; /* fletcher check sum */ | |
| 46 uint32_t length; /* length of block starting from 0x08100000 */ | |
| 47 } customBlockInfo_t; | |
| 48 | |
| 39 void set_CustomsviewsSubpage(uint8_t page); | 49 void set_CustomsviewsSubpage(uint8_t page); |
| 40 | 50 |
| 41 /* Exported variables --------------------------------------------------------*/ | 51 /* Exported variables --------------------------------------------------------*/ |
| 42 | 52 |
| 43 | 53 |
