OpenOCD
|
Go to the source code of this file.
Functions | |
bool | flash_driver_name_matches (const char *name, const char *expected) |
Attempt to match the expected name with the name of a driver. More... | |
unsigned | get_flash_name_index (const char *name) |
Parses the optional '.index' portion of a flash bank identifier. More... | |
bool flash_driver_name_matches | ( | const char * | name, |
const char * | expected | ||
) |
Attempt to match the expected
name with the name
of a driver.
name | The name of the driver (from the bank's device structure). |
expected | The expected driver name, passed by the user. |
Definition at line 27 of file common.c.
References name.
Referenced by get_flash_bank_by_name_noprobe(), and get_nand_device_by_name().
unsigned get_flash_name_index | ( | const char * | name | ) |
Parses the optional '.index' portion of a flash bank identifier.
name | The desired driver name, passed by the user. |
Definition at line 14 of file common.c.
References ERROR_OK, and name.
Referenced by get_flash_bank_by_name_noprobe(), and get_nand_device_by_name().