![]() */ void xmodem_finish_xfer ( struct serial *desc)įor (retries = 10 retries >= 0 retries-)Įrror ( "xmodem_finish_xfer: Transfer aborted by receiver.") Įrror ( "xmodem_finish_xfer: Excessive retries. Serial_write (desc, "\004", 1) /* Send an EOT */Įrror ( "xmodem_send_packet: Excessive retries.") */ int xmodem_init_xfer ( struct serial *desc)Įrror ( "xmodem_send_packet: Transfer aborted by receiver.") įprintf_unfiltered (gdb_stderr, "xmodem_send_packet: Got unexpected character %c (0%o)\n", c, c) */ static void crcinit ( void)Ĭrctab = xmalloc (256 * sizeof ( short)) * Call this to init the fast CRC-16 calculation table. # define CRC16 0x1021 /* Generator polynomial (X^16 X^12 X^5 1) */ static unsigned short *crctab Perror_with_name ( "xmodem.c:readchar()") Static int blknum /* XMODEM block number */ static int crcflag /* Sez we are using CRC's instead of cksums */ static int readchar ( struct serial *desc, int timeout)Įrror ( "Timeout reading from remote system.") I've been using Tera Term to update the firmware on transmitters via a serial port, but the process is fairly menial and user input intensive. # include "xmodem.h" /* These definitions are for xmodem protocol. You should have received a copy of the GNU General Public LicenseĪlong with this program if not, write to the Free Softwareįoundation, Inc., 59 Temple Place - Suite 330, GNU General Public License for more details. ![]() MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program is distributed in the hope that it will be useful,īut WITHOUT ANY WARRANTY without even the implied warranty of The Free Software Foundation either version 2 of the License, or It under the terms of the GNU General Public License as published by This program is free software you can redistribute it and/or modify * XMODEM support for GDB, the GNU debugger.Ĭopyright 1995, 2000, 2001 Free Software Foundation, Inc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |