comparison cp2102/decode_baudtab_main.c @ 58:4890ded06a8b

cp2102-decode-baudtab program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Sep 2023 20:33:26 +0000
parents
children
comparison
equal deleted inserted replaced
57:deba1d5c8024 58:4890ded06a8b
1 /*
2 * This program reads a CP2102 EEPROM image from an Intel HEX file
3 * and decodes the baud rate table contained therein.
4 */
5
6 #include <sys/types.h>
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include "cp210x_defs.h"
10
11 u_char eeprom[SIZE_EEPROM];
12
13 main(argc, argv)
14 char **argv;
15 {
16 if (argc != 2) {
17 fprintf(stderr, "usage: %s ihex-file\n", argv[0]);
18 exit(1);
19 }
20 read_intel_hex(argv[1]);
21 decode_baud_table(stdout);
22 exit(0);
23 }