Home
last modified time | relevance | path

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

/openthread-3.6.0/tests/unit/
Dtest_platform.cpp44 FLASH_SWAP_SIZE = 2048, enumerator
337 static uint8_t sFlash[FLASH_SWAP_SIZE * FLASH_SWAP_NUM]; in GetFlash()
351 OT_TOOL_WEAK uint32_t otPlatFlashGetSwapSize(otInstance *) { return FLASH_SWAP_SIZE; } in otPlatFlashGetSwapSize()
359 address = aSwapIndex ? FLASH_SWAP_SIZE : 0; in otPlatFlashErase()
361 memset(GetFlash() + address, 0xff, FLASH_SWAP_SIZE); in otPlatFlashErase()
369 VerifyOrQuit(aSize <= FLASH_SWAP_SIZE, "aSize invalid"); in otPlatFlashRead()
370 VerifyOrQuit(aOffset <= (FLASH_SWAP_SIZE - aSize), "aOffset + aSize invalid"); in otPlatFlashRead()
372 address = aSwapIndex ? FLASH_SWAP_SIZE : 0; in otPlatFlashRead()
386 VerifyOrQuit(aSize <= FLASH_SWAP_SIZE, "aSize invalid"); in otPlatFlashWrite()
387 VerifyOrQuit(aOffset <= (FLASH_SWAP_SIZE - aSize), "aOffset + aSize invalid"); in otPlatFlashWrite()
[all …]