NVM_BLOCK_SIZE is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

NVM_BLOCK_SIZE macro

Syntax

#define NVM_BLOCK_SIZE (4 * NVM_WORD_SIZE)

References

LocationText
xmc1xxx.c:52
#define NVM_BLOCK_SIZE (4 * NVM_WORD_SIZE)
xmc1xxx.c:247
uint32_t block_count = DIV_ROUND_UP(byte_count, NVM_BLOCK_SIZE);
xmc1xxx.c:257
if (!IS_ALIGNED(offset, NVM_BLOCK_SIZE)) {
xmc1xxx.c:262
if (!IS_ALIGNED(byte_count, NVM_BLOCK_SIZE)) {
xmc1xxx.c:284
retval = target_alloc_working_area(target, MAX(NVM_BLOCK_SIZE,
xmc1xxx.c:285
MIN(block_count * NVM_BLOCK_SIZE, target_get_working_area_avail(target))),
xmc1xxx.c:304
uint32_t blocks = MIN(block_count, data_workarea->size / NVM_BLOCK_SIZE);
xmc1xxx.c:308
MIN(blocks * NVM_BLOCK_SIZE, byte_count),
xmc1xxx.c:312
MIN(blocks * NVM_BLOCK_SIZE, byte_count), buffer);
xmc1xxx.c:318
if (byte_count < blocks * NVM_BLOCK_SIZE) {
xmc1xxx.c:321
blocks * NVM_BLOCK_SIZE - byte_count,
xmc1xxx.c:331
addr, addr + blocks * NVM_BLOCK_SIZE - 1, blocks);
xmc1xxx.c:357
offset += blocks * NVM_BLOCK_SIZE;
xmc1xxx.c:358
buffer += blocks * NVM_BLOCK_SIZE;
xmc1xxx.c:359
byte_count -= MIN(blocks * NVM_BLOCK_SIZE, byte_count);