OpenOCD
|
Go to the source code of this file.
Enumerations | |
enum | read_bit_state { SEEK_HEADER_START , SEEK_HEADER_END , SEEK_PREAMBLE , SEEK_ID , DONE } |
Functions | |
static int | lattice_read_bit_file (struct lattice_bit_file *bit_file, const char *filename, enum lattice_family_e family) |
int | lattice_read_file (struct lattice_bit_file *bit_file, const char *filename, enum lattice_family_e family) |
enum read_bit_state |
Enumerator | |
---|---|
SEEK_HEADER_START | |
SEEK_HEADER_END | |
SEEK_PREAMBLE | |
SEEK_ID | |
DONE |
Definition at line 18 of file lattice_bit.c.
|
static |
Definition at line 26 of file lattice_bit.c.
References be_to_h_u32(), cpld_read_raw_bit_file(), raw_bit_file::data, DONE, ERROR_OK, ERROR_PLD_FILE_LOAD_FAILED, flip_u32(), lattice_bit_file::has_id, lattice_bit_file::idcode, LATTICE_ECP2, LATTICE_ECP3, raw_bit_file::length, LOG_ERROR, LOG_INFO, NULL, lattice_bit_file::offset, lattice_bit_file::part, lattice_bit_file::raw_bit, SEEK_HEADER_END, SEEK_HEADER_START, SEEK_ID, SEEK_PREAMBLE, and state.
Referenced by lattice_read_file().
int lattice_read_file | ( | struct lattice_bit_file * | bit_file, |
const char * | filename, | ||
enum lattice_family_e | family | ||
) |
Definition at line 88 of file lattice_bit.c.
References ERROR_COMMAND_SYNTAX_ERROR, ERROR_PLD_FILE_LOAD_FAILED, lattice_read_bit_file(), and LOG_ERROR.
Referenced by lattice_load_command().