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 // 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. // 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 // Flash config
#define FLASH_SIZE (0x80000) #define FLASH_SIZE (0x80000)

View File

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

View File

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