We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d383819 commit 5130803Copy full SHA for 5130803
c/main.c
@@ -10,9 +10,9 @@ Code for test the patching function
10
11
// define struct for flash memory
12
typedef struct {
13
- uint8_t old_fw_slot[172*1024];
14
- uint8_t new_fw_slot[172*1024];
15
- uint8_t patch_slot[172*1024];
+ uint8_t old_fw_slot[FW_SLOT_SIZE*1024];
+ uint8_t new_fw_slot[FW_SLOT_SIZE*1024];
+ uint8_t patch_slot[PATCH_SLOT_SIZE*1024];
16
} memory_t;
17
18
// addresses of the slots
c/main.h
@@ -5,4 +5,9 @@
5
#include <stdlib.h>
6
#include "bpatch.h"
7
8
+// Define the size of the firmware slots in Kilobytes
9
+#define FW_SLOT_SIZE 2000
+// Define the size of the patch slot in Kilobytes
+#define PATCH_SLOT_SIZE 1000
+
#endif
0 commit comments