comparison packages/hal/arm/edb7xxx/current/support/dl_edb7xxx.c @ 60:3836136e7743 ecos-sw-1999-12-17

Merge from eCos master repository on 1999-12-17-19:44:58-GMT
author jlarmour
date Fri, 17 Dec 1999 20:15:45 +0000
parents f10165814f1e
children c38311975d4f
comparison
equal deleted inserted replaced
59:19ba0f558903 60:3836136e7743
1 //**************************************************************************** 1 //****************************************************************************
2 // 2 //
3 // DOWNLOAD.C - Automates the download of code into the flash on the 3 // DOWNLOAD.C - Automates the download of code into the flash on the
4 // CL-PS7111-DK-D2 board. 4 // Cirrus Logic EDB7XXX boards.
5 // 5 //
6 // Copyright (c) 1999 Cirrus Logic, Inc. 6 // Copyright (c) 1999 Cirrus Logic, Inc.
7 // 7 //
8 // Adapted for Linux by Cygnus Solutions, Inc. 8 // Adapted for Linux by Cygnus Solutions, Inc.
9 // Renamed 'dl_edb7xxx' to indicate support for all Cirrus Logic eval boards. 9 // Renamed 'dl_edb7xxx' to indicate support for all Cirrus Logic eval boards.
95 // If a comm port was specified, then read it and make sure it is valid. 95 // If a comm port was specified, then read it and make sure it is valid.
96 // 96 //
97 if(argc > 3) 97 if(argc > 3)
98 { 98 {
99 lPort = OpenPort(argv[3]); 99 lPort = OpenPort(argv[3]);
100 if (lPort < 0)
101 {
102 fprintf(stderr, "Can't open port: %s\n", argv[3]);
103 return;
104 }
100 } else 105 } else
101 { 106 {
102 lPort = OpenPort(DEFAULT_PORT); 107 lPort = OpenPort(DEFAULT_PORT);
103 } 108 if (lPort < 0)
104 if (lPort < 0) 109 {
105 { 110 fprintf(stderr, "Can't open port: %s\n", DEFAULT_PORT);
106 fprintf(stderr, "Can't open port: %s\n", argv[3]); 111 return;
107 return; 112 }
108 } 113 }
109 114
110 // 115 //
111 // Open the file to be downloaded. 116 // Open the file to be downloaded.
112 // 117 //