Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions rtl/tb/remote_bitbang/remote_bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@

#include "remote_bitbang.h"

int rbs_err;

unsigned char tck;
unsigned char tms;
unsigned char tdi;
unsigned char trstn;
unsigned char tdo;
unsigned char quit;

int socket_fd;
int client_fd;

const ssize_t buf_size = 64 * 1024;
char recv_buf[64 * 1024];
ssize_t recv_start, recv_end;

int rbs_init(uint16_t port)
{
socket_fd = 0;
Expand Down
24 changes: 12 additions & 12 deletions rtl/tb/remote_bitbang/remote_bitbang.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@

#define VERBOSE 0

int rbs_err;
extern int rbs_err;

unsigned char tck;
unsigned char tms;
unsigned char tdi;
unsigned char trstn;
unsigned char tdo;
unsigned char quit;
extern unsigned char tck;
extern unsigned char tms;
extern unsigned char tdi;
extern unsigned char trstn;
extern unsigned char tdo;
extern unsigned char quit;

int socket_fd;
int client_fd;
extern int socket_fd;
extern int client_fd;

static const ssize_t buf_size = 64 * 1024;
char recv_buf[64 * 1024];
ssize_t recv_start, recv_end;
extern const ssize_t buf_size;
extern char recv_buf[];
extern ssize_t recv_start, recv_end;

// Create a new server, listening for connections from localhost on the given
// port.
Expand Down