AN2311 Freescale Semiconductor / Motorola, AN2311 Datasheet - Page 12

no-image

AN2311

Manufacturer Part Number
AN2311
Description
Bootstrapping the MSC8101 Device Through the HDI16 Port
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Related Documents
12
/* ASCII characters */
#define CHAR_NUMBER0
#define CHAR_NUMBER1
#define CHAR_NUMBER2
#define CHAR_NUMBER3
#define CHAR_NUMBER4
#define CHAR_NUMBER5
#define CHAR_NUMBER6
#define CHAR_NUMBER7
#define CHAR_NUMBER8
#define CHAR_NUMBER9
#define CHAR_LETTER_A
#define CHAR_LETTER_B
#define CHAR_LETTER_C
#define CHAR_LETTER_D
#define CHAR_LETTER_E
#define CHAR_LETTER_F
void main(int argc, char *argv[])
{
FILE *pfiIn;
FILE *pfiOut;
char ucCh0;
char ucCh1;
int
char ucLength;
char aucTemp[2];
int
int
int
int
int
char szCurrentString[120];
char szTempString[120];
uliEndFlag = 0;
/* Ignore the application name
/* argv[0] contains application name
/* decrease arg count, increase arg value */
argv++;
strcpy(szCurrentString,*argv);
strcpy(szTempString,&szCurrentString[0]); /* get loader file name */
if((pfiIn = fopen(szTempString,"rb")) ==NULL)
{
}
if((pfiOut = fopen(".\\slaveimg.c","wb")) ==NULL)
{
}
/* Get line header S? */
uliCounter;
ulii;
ulij;
uliRemainder;
uliSize;
uliEndFlag;
printf("error \n");
exit(1);
printf("error2 \n");
exit(1);
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
0x30
0x31
0x32
0x33
0x34
0x35
0x36
0x37
0x38
0x39
0x41
0x42
0x43
0x44
0x45
0x46
*/
*/
/* Parse parameters */

Related parts for AN2311