Mercurial > public > ostc4
comparison Common/Inc/settings.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 | 8c0134a287da |
| children | 158100a84ebd |
comparison
equal
deleted
inserted
replaced
| 1014:8c0134a287da | 1017:5924a2d1d3ba |
|---|---|
| 30 #include <stdint.h> | 30 #include <stdint.h> |
| 31 #include <stdbool.h> | 31 #include <stdbool.h> |
| 32 | 32 |
| 33 // From Common/Inc: | 33 // From Common/Inc: |
| 34 #include "FirmwareData.h" | 34 #include "FirmwareData.h" |
| 35 | 35 #include "firmwareEraseProgram.h" |
| 36 //#include "data_central.h" | |
| 37 | 36 |
| 38 #include "global_constants.h" | 37 #include "global_constants.h" |
| 39 // From Common/Drivers/ | 38 // From Common/Drivers/ |
| 40 #include "stm32f4xx_hal.h" | 39 #include "stm32f4xx_hal.h" |
| 41 #include "stm32f4xx_hal_rtc.h" | 40 #include "stm32f4xx_hal_rtc.h" |
| 330 /* new in 0xFFFF002c */ | 329 /* new in 0xFFFF002c */ |
| 331 StimeZone timeZone; | 330 StimeZone timeZone; |
| 332 uint8_t warningBuzzer; | 331 uint8_t warningBuzzer; |
| 333 } SSettings; | 332 } SSettings; |
| 334 | 333 |
| 335 typedef struct | |
| 336 { | |
| 337 // 8 bytes | |
| 338 uint16_t primarySerial; | |
| 339 uint8_t primaryLicence; | |
| 340 uint8_t revision8bit; | |
| 341 uint8_t production_year; | |
| 342 uint8_t production_month; | |
| 343 uint8_t production_day; | |
| 344 uint8_t production_bluetooth_name_set; | |
| 345 | |
| 346 // 44 bytes | |
| 347 char production_info[44]; | |
| 348 | |
| 349 // 8 bytes | |
| 350 uint16_t secondarySerial; | |
| 351 uint8_t secondaryLicence; | |
| 352 uint8_t secondaryReason8bit; | |
| 353 uint8_t secondary_year; | |
| 354 uint8_t secondary_month; | |
| 355 uint8_t secondary_day; | |
| 356 uint8_t secondary_bluetooth_name_set; | |
| 357 | |
| 358 // 4 bytes | |
| 359 char secondary_info[4]; | |
| 360 } SHardwareData; | |
| 361 | |
| 362 uint8_t writeData(uint8_t *); | 334 uint8_t writeData(uint8_t *); |
| 363 uint8_t readData(uint8_t what,uint8_t *); | 335 uint8_t readData(uint8_t what,uint8_t *); |
| 364 uint8_t readDataLimits__8and16BitValues_4and7BytesOutput(uint8_t what, uint8_t * data); | 336 uint8_t readDataLimits__8and16BitValues_4and7BytesOutput(uint8_t what, uint8_t * data); |
| 365 | 337 |
| 366 uint8_t getPPO2Max(void); | 338 uint8_t getPPO2Max(void); |
