Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

Commit

Permalink
remote_bitbang.c: revert RISC-V code
Browse files Browse the repository at this point in the history
- if fails on mingw-w64
  • Loading branch information
ilg-ul committed Nov 10, 2017
1 parent 4873dd0 commit 2ec04e4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/jtag/drivers/remote_bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
static char *remote_bitbang_host;
static char *remote_bitbang_port;

#if BUILD_RISCV == 1
// [ILG] WORKAROUND
#if 0 //BUILD_RISCV == 1
static FILE *remote_bitbang_in;
static FILE *remote_bitbang_out;
static int remote_bitbang_fd;
Expand Down Expand Up @@ -130,7 +131,8 @@ static int remote_bitbang_quit(void)
return ERROR_OK;
}

#if BUILD_RISCV == 1
// [ILG] WORKAROUND
#if 0 //BUILD_RISCV == 1
static int char_to_int(int c)
{
switch (c) {
Expand Down Expand Up @@ -231,7 +233,8 @@ static void remote_bitbang_blink(int on)
}

static struct bitbang_interface remote_bitbang_bitbang = {
#if BUILD_RISCV == 1
// [ILG] WORKAROUND
#if 0 //BUILD_RISCV == 1
.buf_size = sizeof(remote_bitbang_buf) - 1,
.sample = &remote_bitbang_sample,
.read_sample = &remote_bitbang_read_sample,
Expand Down Expand Up @@ -319,7 +322,8 @@ static int remote_bitbang_init_unix(void)

static int remote_bitbang_init(void)
{
#if BUILD_RISCV == 1
// [ILG] WORKAROUND
#if 0 //BUILD_RISCV == 1
bitbang_interface = &remote_bitbang_bitbang;

remote_bitbang_start = 0;
Expand Down

0 comments on commit 2ec04e4

Please sign in to comment.