NetBurner 3.5.8
PDF Version
Toggle main menu visibility
arch/coldfire/include/PlatformHeader.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
5
#ifndef NB_PLATFORM_H
6
#define NB_PLATFORM_H
7
8
#include <basictypes.h>
9
10
#define NBUP_MSFUS_XTRA_RECORD_PAD (16)
11
extern
const
int
EXTRA_RECORD_PAD;
12
struct
PlatformFlashHeaderStruct
13
{
14
// these values will be in the correct order when transmit in the image file
15
// they do not need to be converted between endianess
16
uint32_t U32BlockRamStart;
17
uint32_t U32ExecutionAddr;
18
uint32_t U32BlockSize;
19
uint32_t U32SourceBlockSize;
20
uint32_t U32BlockSum;
21
uint32_t U32StructSum;
22
uint8_t ExtraData[NBUP_MSFUS_XTRA_RECORD_PAD];
23
bool
VerifyCorrect();
24
uint32_t SizeWithoutPad() {
return
sizeof
(PlatformFlashHeaderStruct) - NBUP_MSFUS_XTRA_RECORD_PAD; };
25
uint32_t CompleteRecordSize() {
return
SizeWithoutPad() + U32SourceBlockSize; };
26
} __attribute__((packed));
27
28
#endif
arch
coldfire
include
PlatformHeader.h
Generated by
1.18.0