OpenOCD
nor/driver.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  flash_driver
 Provides the implementation-independent structure that defines all of the callbacks required by OpenOCD flash drivers. More...
 

Macros

#define __FLASH_BANK_COMMAND(name)    COMMAND_HELPER(name, struct flash_bank *bank)
 
#define FLASH_BANK_COMMAND_HANDLER(name)    static __FLASH_BANK_COMMAND(name)
 

Functions

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

Macro Definition Documentation

◆ __FLASH_BANK_COMMAND

#define __FLASH_BANK_COMMAND (   name)     COMMAND_HELPER(name, struct flash_bank *bank)

Definition at line 16 of file nor/driver.h.

◆ FLASH_BANK_COMMAND_HANDLER

#define FLASH_BANK_COMMAND_HANDLER (   name)     static __FLASH_BANK_COMMAND(name)

Definition at line 230 of file nor/driver.h.

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 161 of file drivers.c.

References flash_drivers, name, and NULL.

Referenced by COMMAND_HANDLER().