Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

mkimg.c File Reference

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "srec.h"

Go to the source code of this file.

Defines

#define IMAGE_START   0x8000
#define IMAGE_MAXLEN   0x4000

Functions

int srec_load (char *name, unsigned char *image, int maxlen, unsigned short *start)
char * basename (char *path)
char * build_image_name (char *dst, char *src)
int main (int argc, char **argv)
 the user main()


Define Documentation

#define IMAGE_MAXLEN   0x4000
 

Definition at line 35 of file mkimg.c.

#define IMAGE_START   0x8000
 

Definition at line 34 of file mkimg.c.


Function Documentation

char* basename char *  path  ) 
 

Definition at line 138 of file mkimg.c.

Referenced by build_image_name(), and main().

char* build_image_name char *  dst,
char *  src
 

Definition at line 144 of file mkimg.c.

References basename().

Referenced by main().

int main int  argc,
char **  argv
 

the user main()

Definition at line 162 of file mkimg.c.

References basename(), build_image_name(), exit(), IMAGE_MAXLEN, and srec_load().

int srec_load char *  name,
unsigned char *  image,
int  maxlen,
unsigned short *  start
 

Definition at line 49 of file mkimg.c.

References srec_t::addr, srec_t::count, srec_t::data, exit(), IMAGE_MAXLEN, IMAGE_START, memcpy(), memset(), srec_decode(), srec_strerror(), and srec_t::type.

Referenced by main().


Generated on Fri Feb 25 08:02:47 2005 for brickos by  doxygen 1.3.9.1