Skip to content
Snippets Groups Projects
Commit 956ded62 authored by rswindell's avatar rswindell
Browse files

Removed #inclue <spawno.h> (no longer needed) and com_type function (unused).

parent d80b15b0
No related branches found
No related tags found
No related merge requests found
......@@ -34,93 +34,6 @@
****************************************************************************/
#include "scfg.h"
#include "spawno.h"
int com_type()
{
int i;
i=0;
strcpy(opt[0],"UART");
strcpy(opt[1],"FOSSIL Int 14h");
strcpy(opt[2],"PC BIOS Int 14h");
strcpy(opt[3],"PS/2 BIOS Int 14h");
strcpy(opt[4],"DigiBoard Int 14h");
opt[5][0]=0;
SETHELP(WHERE);
/*
COM Port Type:
Select the type of serial COM port for this node. If you are unsure,
select UART. If you have a FOSSIL driver installed, you do not have to
select FOSSIL unless you specifically want to override Synchronet's
internal COM functions.
*/
i=ulist(WIN_MID|WIN_SAV,0,0,0,&i,0
,"COM Port Type",opt);
if(i==-1)
return(0);
changes=1;
if(i) {
cfg.com_irq=cfg.com_port-1;
if(i==1) {
savnum=0;
umsg("WARNING: This is not a recommended setting for most systems");
umsg("The default DSZ command lines will not work with this setting");
cfg.com_base=0xf; }
else if(i==2)
cfg.com_base=0xb;
else if(i==3)
cfg.com_base=0xe;
else if(i==4)
cfg.com_base=0xd; }
else { /* UART */
if(cfg.com_port && cfg.com_port<5) {
i=0;
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
SETHELP(WHERE);
/*
Use Default UART IRQ and I/O Address:
If your COM Port's UART is using the normal IRQ and Base I/O Address
for the configured COM Port number, select Yes. If your COM Port
is using a non-standard IRQ or I/O Address, select No and be sure
to set the UART IRQ and UART I/O Address options. If you are not
sure what IRQ and I/O Address your COM Port is using, select Yes.
*/
i=ulist(WIN_MID|WIN_SAV,0,0,0,&i,0
,"Use Default UART IRQ and I/O Address"
,opt);
if(i==0) {
switch(cfg.com_port) {
case 1:
cfg.com_irq=4;
cfg.com_base=0x3f8;
break;
case 2:
cfg.com_irq=3;
cfg.com_base=0x2f8;
break;
case 3:
cfg.com_irq=4;
cfg.com_base=0x3e8;
break;
case 4:
cfg.com_irq=3;
cfg.com_base=0x2e8;
break; }
changes=1;
return(1); } }
else {
if(cfg.com_base<0x100)
cfg.com_base=0x100;
if(cfg.com_irq<2 || cfg.com_irq>15)
cfg.com_irq=5; } }
return(0);
}
void node_menu()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment