File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33
33
34
34
// Putting the entire flash sector in the NVM byte array buffer
35
35
// would take up too much RAM. This limits how much of the sector we use.
36
- #define NVM_BYTEARRAY_BUFFER_LEN 512
36
+ #define NVM_BYTEARRAY_BUFFER_SIZE 512
37
37
38
38
// Flash config
39
39
#define FLASH_SIZE (0x80000)
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ const nvm_bytearray_obj_t common_hal_mcu_nvm_obj = {
116
116
.base = {
117
117
.type = & nvm_bytearray_type ,
118
118
},
119
- .len = NVM_BYTEARRAY_BUFFER_LEN ,
119
+ .len = NVM_BYTEARRAY_BUFFER_SIZE ,
120
120
.start_address = (uint8_t * ) (CIRCUITPY_INTERNAL_NVM_START_ADDR )
121
121
};
122
122
#endif
Original file line number Diff line number Diff line change 32
32
// STM flash is saved in sectors (not pages), at a minimum size of 16k.
33
33
// To limit the RAM usage during writing, we want to set a smaller
34
34
// maximum value.
35
- #ifndef NVM_BYTEARRAY_BUFFER_LEN
36
- #define NVM_BYTEARRAY_BUFFER_LEN 512
35
+ #ifndef NVM_BYTEARRAY_BUFFER_SIZE
36
+ #define NVM_BYTEARRAY_BUFFER_SIZE 512
37
37
#endif
38
38
39
39
typedef struct {
You can’t perform that action at this time.
0 commit comments