Home
last modified time | relevance | path

Searched refs:code_length (Results 1 – 1 of 1) sorted by relevance

/device/google/contexthub/firmware/src/platform/stm32f4xx/
Dbl.c379 uint32_t i, code_length; in blEraseSectors() local
382 blGetFlashEraseCode(&code_src, &code_length); in blEraseSectors()
384 if (code_length < BL_MAX_FLASH_CODE) { in blEraseSectors()
385 code = (uint16_t *)(((uint32_t)alloca(code_length + 1) + 1) & ~0x1); in blEraseSectors()
388 for (i = 0; i < code_length / sizeof(uint16_t); i++) in blEraseSectors()
406 uint32_t i, code_length; in blWriteBytes() local
409 blGetFlashWriteCode(&code_src, &code_length); in blWriteBytes()
411 if (code_length < BL_MAX_FLASH_CODE) { in blWriteBytes()
412 code = (uint16_t *)(((uint32_t)alloca(code_length+1) + 1) & ~0x1); in blWriteBytes()
415 for (i = 0; i < code_length / sizeof(uint16_t); i++) in blWriteBytes()