Skip to content

Commit a79ac35

Browse files
committed
Rename NVM_BYTEARRAY_BUFFER_SIZE
1 parent 68195a8 commit a79ac35

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ports/stm/boards/thunderpack/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
// Putting the entire flash sector in the NVM byte array buffer
3535
// 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
3737

3838
// Flash config
3939
#define FLASH_SIZE (0x80000)

ports/stm/common-hal/microcontroller/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const nvm_bytearray_obj_t common_hal_mcu_nvm_obj = {
116116
.base = {
117117
.type = &nvm_bytearray_type,
118118
},
119-
.len = NVM_BYTEARRAY_BUFFER_LEN,
119+
.len = NVM_BYTEARRAY_BUFFER_SIZE,
120120
.start_address = (uint8_t*) (CIRCUITPY_INTERNAL_NVM_START_ADDR)
121121
};
122122
#endif

ports/stm/common-hal/nvm/ByteArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
// STM flash is saved in sectors (not pages), at a minimum size of 16k.
3333
// To limit the RAM usage during writing, we want to set a smaller
3434
// 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
3737
#endif
3838

3939
typedef struct {

0 commit comments

Comments
 (0)