Rename NVM_BYTEARRAY_BUFFER_SIZE

This commit is contained in:
jgillick 2020-03-22 15:20:58 -07:00
parent 68195a8dfe
commit a79ac35173
3 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@
// Putting the entire flash sector in the NVM byte array buffer
// would take up too much RAM. This limits how much of the sector we use.
#define NVM_BYTEARRAY_BUFFER_LEN 512
#define NVM_BYTEARRAY_BUFFER_SIZE 512
// Flash config
#define FLASH_SIZE (0x80000)

View File

@ -116,7 +116,7 @@ const nvm_bytearray_obj_t common_hal_mcu_nvm_obj = {
.base = {
.type = &nvm_bytearray_type,
},
.len = NVM_BYTEARRAY_BUFFER_LEN,
.len = NVM_BYTEARRAY_BUFFER_SIZE,
.start_address = (uint8_t*) (CIRCUITPY_INTERNAL_NVM_START_ADDR)
};
#endif

View File

@ -32,8 +32,8 @@
// STM flash is saved in sectors (not pages), at a minimum size of 16k.
// To limit the RAM usage during writing, we want to set a smaller
// maximum value.
#ifndef NVM_BYTEARRAY_BUFFER_LEN
#define NVM_BYTEARRAY_BUFFER_LEN 512
#ifndef NVM_BYTEARRAY_BUFFER_SIZE
#define NVM_BYTEARRAY_BUFFER_SIZE 512
#endif
typedef struct {