lattice: added support for reset method (only tested with ECP5
This commit is contained in:
parent
318ebcab22
commit
2103316baf
|
|
@ -702,6 +702,13 @@ bool Lattice::post_flash_access()
|
|||
_jtag->go_test_logic_reset();
|
||||
return true;
|
||||
}
|
||||
void Lattice::reset()
|
||||
{
|
||||
if (_fpga_family == ECP5_FAMILY)
|
||||
post_flash_access();
|
||||
else
|
||||
printError("Lattice Reset only tested on ECP5 Family.");
|
||||
}
|
||||
|
||||
bool Lattice::clearSRAM()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class Lattice: public Device, SPIInterface {
|
|||
int8_t verbose, bool skip_load_bridge, bool skip_reset);
|
||||
uint32_t idCode() override;
|
||||
int userCode();
|
||||
void reset() override {}
|
||||
void reset() override;
|
||||
void program(unsigned int offset, bool unprotect_flash) override;
|
||||
bool program_mem();
|
||||
bool program_flash(unsigned int offset, bool unprotect_flash);
|
||||
|
|
|
|||
Loading…
Reference in New Issue