| 346 | } |
| 347 | |
| 348 | static 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 |
no outgoing calls
no test coverage detected