SmartSnippets DA1459x SDK
flash_partitions.h
Go to the documentation of this file.
1 
34 #ifndef FLASH_PARTITIONS_H_
35 #define FLASH_PARTITIONS_H_
36 
37 #ifndef PARTITION_TABLE_BEGIN
38 #define PARTITION_TABLE_BEGIN
39 #endif
40 
41 #ifndef PARTITION_TABLE_ENTRY
42 /*
43  * This to create partition entry in partition table.
44  */
45 #define PARTITION_TABLE_ENTRY(start, size, id)
46 #endif
47 
48 #ifndef PARTITION
49 /*
50  * This macro can be used to define partition without specifying size. Size of partition created
51  * with this macro will be computed using next partition starting address.
52  * When this macro is used partition entries must be put in partition table in ascending starting
53  * offset order.
54  * Last entry in partition table can't be created with this macro.
55  */
56 #define PARTITION(start, id, flags)
57 #endif
58 
59 #ifndef PARTITION2
60 /*
61  * This macro creates partition entry in similar way as PARTITION_TABLE_ENTRY but adds flags field.
62  * In this case id_START and id_SIZE macros must be defined.
63  */
64 #define PARTITION2(id, flags)
65 #endif
66 
67 #ifndef PARTITION_TABLE_END
68 #define PARTITION_TABLE_END
69 #endif
70 
71 #define PARTITION_TABLE_ADDR NVMS_PARTITION_TABLE_START
72 
73 PARTITION_TABLE_BEGIN
74 #include <partition_table.h>
75 PARTITION_TABLE_END
76 
77 #endif /* FLASH_PARTITIONS_H_ */
78