Skip to content

Commit

Permalink
gowin: add reset method
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Jan 15, 2020
1 parent b10f9c4 commit 414e6ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions gowin.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion gowin.hpp
Expand Up @@ -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();

Expand Down

0 comments on commit 414e6ee

Please sign in to comment.