OpenOCD
drivers.c File Reference
Include dependency graph for drivers.c:

Go to the source code of this file.

Functions

const struct flash_driverflash_driver_find_by_name (const char *name)
 Find a NOR flash driver by its name. More...
 

Variables

static const struct flash_driver *const flash_drivers []
 The list of built-in flash drivers. More...
 

Function Documentation

◆ flash_driver_find_by_name()

const struct flash_driver* flash_driver_find_by_name ( const char *  name)

Find a NOR flash driver by its name.

Parameters
nameThe name of the requested driver.
Returns
The flash_driver called name, or NULL if not found.

Definition at line 92 of file drivers.c.

References flash_drivers, name, and NULL.

Referenced by COMMAND_HANDLER().

Variable Documentation

◆ flash_drivers

const struct flash_driver* const flash_drivers[]
static

The list of built-in flash drivers.

Todo:
Make this dynamically extendable with loadable modules.

Definition at line 16 of file drivers.c.

Referenced by flash_driver_find_by_name().