gowin: add reset method

This commit is contained in:
Gwenhael Goavec-Merou 2020-01-15 09:49:09 +01:00
parent b10f9c4e15
commit 414e6ee1b0
2 changed files with 7 additions and 1 deletions

View File

@ -90,6 +90,12 @@ Gowin::~Gowin()
delete _fs;
}
void Gowin::reset()
{
wr_rd(RELOAD, NULL, 0, NULL, 0);
wr_rd(NOOP, NULL, 0, NULL, 0);
}
void Gowin::programFlash()
{
uint8_t *data;

View File

@ -34,7 +34,7 @@ class Gowin: public Device {
bool verbose);
~Gowin();
int idCode() override;
void reset() override {}
void reset() override;
void program(unsigned int offset) override;
void programFlash();