]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - tools/gdb/gdbcont.c
3 * Murray Jensen <Murray.Jensen@csiro.au>
5 * SPDX-License-Identifier: GPL-2.0+
16 char *serialdev
= "/dev/term/b";
17 speed_t speed
= B230400
;
21 main(int ac
, char **av
)
25 if ((pname
= strrchr(av
[0], '/')) == NULL
)
30 while ((c
= getopt(ac
, av
, "b:p:v")) != EOF
)
34 if ((speed
= cvtspeed(optarg
)) == B0
)
35 Error("can't decode baud rate specified in -b option");
48 fprintf(stderr
, "Usage: %s [-b bps] [-p dev] [-v]\n", pname
);
55 fprintf(stderr
, "Opening serial port and sending continue...\n");
57 if ((sfd
= serialopen(serialdev
, speed
)) < 0)
58 Perror("open of serial device '%s' failed", serialdev
);
64 if (serialclose(sfd
) < 0)
65 Perror("close of serial device '%s' failed", serialdev
);
68 fprintf(stderr
, "Done.\n");