You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.2 KiB
24 lines
1.2 KiB
#include "MEMORY.h"
|
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
#include "boot.h"
|
|
#include "device.h"
|
|
//This part will never ever change in a scope of one PCB
|
|
const volatile flash_datablock_t STATIC_DATA_BL __attribute__((section(".locationInBoot"),used)) =
|
|
{
|
|
.Padding = 0x0,
|
|
DEVICE_CFG,
|
|
.SW = {BOOT_VERSION_MAJOR,BOOT_VERSION_MINOR},
|
|
.AppCRC = 0xFFFFFFFF, //No need for it
|
|
}
|
|
;
|
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
//This part will never ever change in a scope of one PCB. Except...
|
|
const volatile flash_datablock_t STATIC_DATA_APP __attribute__((section(".locationInApp"),used)) = {
|
|
.Padding = 0x0,
|
|
DEVICE_CFG,
|
|
.SW = {APP_V_MAJOR, APP_V_MINOR}, //<--This one
|
|
.AppCRC = 0xFFFFFFFF,
|
|
|
|
} ;
|
|
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|