CONTROLINK86 SMSC, CONTROLINK86 Datasheet - Page 65

no-image

CONTROLINK86

Manufacturer Part Number
CONTROLINK86
Description
Development Software Embedded Networking Software
Manufacturer
SMSC
Datasheet

Specifications of CONTROLINK86

Tool Function
Compiler
Tool Type
Compiler
Processor Series
80x86
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
ControLink86 Realtime Networking Software
char dummy[10];
USIGN8 temp_param;
USIGN8 i;
FILE *params;
/* select the configuration parameters for the D20.C */
printf("Enter:\n");
printf("
printf("
printf("
printf("
gets(&dummy[0]);
printf("\n");
fflush(stdin);
/* default parameters in D20.C */
if((dummy[0] == 'd') || (dummy[0] == 'D'))
/* enter parameters manually */
else if((dummy[0] == 'm') || (dummy[0] == 'M'))
/* read parameters from D20.PAR file */
else if((dummy[0] == 'f') || (dummy[0] == 'F'))
/* exit */
else if((dummy[0] == 'e') || (dummy[0] == 'e'))
else
CLRSCR;
/* display what is about to be configured */
display_parameters();
printf("\nEnter:\n");
printf("
printf("
gets(&dummy[0]);
printf("\n");
fflush(stdin);
/* initialize the hardware with the given parameters */
{
d20_set_defaults();
}
{
for(i = 0; i <= D20P_SLOW_ARB; i++)
}
{
if((params = fopen( "D20.PAR", "r" )) == NULL)
else
}
{
exit(-1);
}
{
printf("\nInvalid selection - exiting!\n");
exit(-1);
}
{
printf("%s: ", par_names[i] );
gets(&dummy[0]);
fflush(stdin);
sscanf(&dummy[0], "%x", &temp_param);
d20_set_parameter(i, temp_param);
}
{
printf( "ERROR The file 'D20.PAR' was not opened. Exiting\n");
d20_exit();
exit(-1);
}
{
for(i = 0; i <= D20P_SLOW_ARB; i++)
fclose(params);
}
<d> for the default parameters - in D20.C\n");
<m> for manual setting of the parameters\n");
<f> to initialize parameters from the file D20.PAR\n");
<e> to exit this program\n");
<y> to keep the above parameters\n");
<e> to exit this program\n");
{
fscanf(params, "%02x", &temp_param);
d20_set_parameter(i, temp_param);
}
65

Related parts for CONTROLINK86