Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches

Overview

Global List of Supported Flash Devices.

Note
If a match is found, the corresponding Vendor Profiles flags are applied.
All the content such as JEDEC Identifiers, part_no and post_init_hook will be stored in spiFlash_instance_t that user declared initially.
Please refer to spiFlash_info_t to learn how to create own custom flash descriptor.
// Example Usage:
flash->info = NULL;
const spiFlash_info_t* tables[] = { user_flash, known_flash };
// Identify Flash
for (int i = 0; i < 2; i++) {
if (tables[i] != NULL) {
flash->info = identifyFlash(flash->detected_id, tables[i]);
if (flash->info == NULL && i ==0) LOG_WARN(DBG_MOD_SPI_FLASH,
"User flash is not found/match, checking with known flash."); // userflash not exist.
if (flash->info != NULL) break; // Found a match!
}
}
#define LOG_WARN(debug, fmt,...)
Definition debug.h:238
#define DBG_MOD_SPI_FLASH
SPI Flash Driver.
Definition debug.h:108
const spiFlash_info_t known_flash[]
Supported Flash Info.
SPI Flash Device Descriptor.

Variables

const spiFlash_info_t known_flash []
 Supported Flash Info.

Variable Documentation

◆ known_flash

const spiFlash_info_t known_flash[]
extern

#include <spiFlash_list.h>

Supported Flash Info.

Note
Checkout spiFlash_list.c for more detail implementation.
See also
spiFlash_info_t
spiFlash_instance_t

Definition at line 16 of file spiFlash_list.c.