MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / flash_device_find_by_part

Function flash_device_find_by_part

components/fal/src/fal_partition.c:348–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348static const struct fal_flash_dev *flash_device_find_by_part(const struct fal_partition *part)
349{
350 RT_ASSERT(part >= partition_table);
351 RT_ASSERT(part <= &partition_table[partition_table_len - 1]);
352
353 return part_flash_cache[part - partition_table].flash_dev;
354}
355
356/**
357 * get the partition table

Callers 3

fal_partition_readFunction · 0.85
fal_partition_writeFunction · 0.85
fal_partition_eraseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected