Browse Source

fpgautils.c: use lancelot as target

Xiangfu 13 years ago
parent
commit
5275f2b1a8
2 changed files with 4 additions and 1 deletions
  1. 2 1
      fpgautils.c
  2. 2 0
      fpgautils.h

+ 2 - 1
fpgautils.c

@@ -400,7 +400,8 @@ int serial_open(const char *devpath, unsigned long baud, signed short timeout, b
 	my_termios.c_cflag |= CS8;
 	my_termios.c_cflag |= CREAD;
 #ifdef USE_AVALON
-	my_termios.c_cflag |= CRTSCTS;
+	/* FIXME: change to |= CRTSCTS */
+	my_termios.c_cflag &= ~CRTSCTS;
 #endif
 	my_termios.c_cflag |= CLOCAL;
 	my_termios.c_cflag &= ~(CSIZE | PARENB);

+ 2 - 0
fpgautils.h

@@ -36,6 +36,8 @@ extern ssize_t _serial_read(int fd, char *buf, size_t buflen, char *eol);
 
 extern FILE *open_bitstream(const char *dname, const char *filename);
 
+extern int get_serial_cts(int fd);
+
 #ifndef WIN32
 extern const struct timeval tv_timeout_default;
 extern const struct timeval tv_inter_char_default;