FreeCalypso > hg > fc-sim-tools
comparison serial/main.c @ 42:6cc3eea720cb
serial: speed enhancement implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Mar 2021 21:17:56 +0000 |
parents | 5ee00413b8af |
children | be27d1c85861 |
comparison
equal
deleted
inserted
replaced
41:5ee00413b8af | 42:6cc3eea720cb |
---|---|
3 */ | 3 */ |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 extern unsigned baud_base; | 8 extern unsigned baud_base, baud_spenh; |
9 | 9 |
10 main(argc, argv) | 10 main(argc, argv) |
11 char **argv; | 11 char **argv; |
12 { | 12 { |
13 int rc; | 13 int rc; |
23 serial_card_reset(); | 23 serial_card_reset(); |
24 rc = collect_atr(); | 24 rc = collect_atr(); |
25 if (rc < 0) | 25 if (rc < 0) |
26 exit(1); | 26 exit(1); |
27 print_atr("A"); | 27 print_atr("A"); |
28 if (baud_spenh) | |
29 spenh_logic(); | |
28 | 30 |
29 /* remaining logic to be implemented */ | 31 /* remaining logic to be implemented */ |
30 exit(0); | 32 exit(0); |
31 } | 33 } |