WISP ERT (Client)  1.0.0
The WISP Extended Runtime (WISP side)
mem-map.h
Go to the documentation of this file.
1 
11 #ifndef MEM_MAP_H_
12 #define MEM_MAP_H_
13 
14 #define MEM_MAP_INFOD_START (0x1800)
15 #define MEM_MAP_INFOD_END (0x187F)
16 #define MEM_MAP_INFOD_SIZE (128)
17 
18 #define MEM_MAP_INFOC_START (0x1880)
19 #define MEM_MAP_INFOC_END (0x18FF)
20 #define MEM_MAP_INFOC_SIZE (128)
21 
22 #define MEM_MAP_INFOB_START (0x1900)
23 #define MEM_MAP_INFOB_END (0x197F)
24 #define MEM_MAP_INFOB_SIZE (128)
25 
26 #define MEM_MAP_INFOA_START (0x1980) /* DO NOT USE InfoA! contains factory programmed config */
27 #define MEM_MAP_INFOA_END (0x19FF)
28 #define MEM_MAP_INFOA_SIZE (128)
29 
30 #define MEM_MAP_WISP_START (MEM_MAP_INFOD_START)
31 #define MEM_MAP_WISP_END (MEM_MAP_INFOB_END)
32 #define MEM_MAP_WISP_SIZE (128*3)
33 // #define MEM_MAP_WISPCFG_SIZE (202) // Needed?
34 
35 #define BYTES_IN_INFO_SEG (128) /* number of bytes in a info mem segment from MSP430FR5969*/
36 
37 // #define BANK_B (0) // Needed?
38 // #define BANK_C (1) // Needed?
39 // #define BANK_D (2) // Needed?
40 
41 // #define NUM_CLKS (33) // Not needed with FR5969
42 
43 
44 
46 // START of WISP MEMORY MAP
48 // The WISP's "unique" tag ID. Two bytes.
49 #define INFO_WISP_TAGID (MEM_MAP_WISP_START)
50 
51 // A table of some random 16 bit numbers, so the WISP doesn't need to
52 // generate the whole thing on the fly. 2 bytes each.
53 #define INFO_WISP_RAND_TBL (INFO_WISP_TAGID + 2)
54 
55 // A checksum.
56 // TODO Is it for the entirety of WISP-specific info segments?
57 // TODO Use this in WISP protocol firmware
58 #define INFO_WISP_CHECKSUM (INFO_WISP_RAND_TBL + (NUM_RN16_2_STORE*2))
59 
60 // Beginning of application memory section
61 #define INFO_WISP_USR (INFO_WISP_CHECKSUM + 2)
62 // END of WISP MEMORY MAP
65 
66 // Compute length of the application memory section
67 #define LENGTH_USR_INFO (MEM_MAP_WISP_END - INFO_WISP_USR)
68 
69 
70 
71 #endif /* MEM_MAP_H_ */