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.

23 lines
1.1 KiB

#ifndef MEMORY_H_
#define MEMORY_H_
#include "boot.h"
#include "IDIBUS_DEFS.h"
typedef volatile struct{ //Size in bytes =
volatile uint8_t Padding;
volatile uint8_t GS1_country[IDISN_FIXP_GS1_COUNTRY_Length];
volatile uint8_t GS1_company[IDISN_FIXP_GS1_COMPANY_Length];
volatile uint8_t ModuleType[IDISN_FIXP_MODULE_TYPE_Length];
volatile uint8_t HW_revision[IDISN_FIXP_HW_REV_Length];
volatile uint8_t SN[IDISN_FIXP_SERIAL_Length];
volatile uint8_t MAC[IDISN_FIXP_MAC_Length];
volatile uint8_t SW[IDISN_FIXP_SW_REV_Length]; //SW Version (Bootloader/App)
volatile uint32_t AppCRC; //Only in APP
} flash_datablock_t;
//Universal data block
extern const volatile flash_datablock_t STATIC_DATA_APP __attribute__((section (".locationInApp")));
extern const volatile flash_datablock_t STATIC_DATA_BL __attribute__((section (".locationInBoot")));
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#endif /* MEMORY_H_ */