- motorola s19 file loader added
- added checksum support to intel hex file loader - elf file loader now ignores any bss sections - mingw build now always opens files in binary mode git-svn-id: svn://svn.berlios.de/openocd/trunk@185 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -42,10 +42,7 @@ typedef enum image_type
|
||||
IMAGE_IHEX, /* intel hex-record format */
|
||||
IMAGE_MEMORY, /* target-memory pseudo-image */
|
||||
IMAGE_ELF, /* ELF binary */
|
||||
/*
|
||||
* Possible future enhancements:
|
||||
* IMAGE_SRECORD,
|
||||
*/
|
||||
IMAGE_SRECORD /* motorola s19 */
|
||||
} image_type_t;
|
||||
|
||||
typedef struct image_section_s
|
||||
@@ -96,6 +93,12 @@ typedef struct fileio_elf_s
|
||||
u8 endianness;
|
||||
} image_elf_t;
|
||||
|
||||
typedef struct image_mot_s
|
||||
{
|
||||
fileio_t fileio;
|
||||
u8 *buffer;
|
||||
} image_mot_t;
|
||||
|
||||
extern int image_open(image_t *image, char *url, char *type_string);
|
||||
extern int image_read_section(image_t *image, int section, u32 offset, u32 size, u8 *buffer, u32 *size_read);
|
||||
extern int image_close(image_t *image);
|
||||
@@ -103,5 +106,6 @@ extern int image_close(image_t *image);
|
||||
#define ERROR_IMAGE_FORMAT_ERROR (-1400)
|
||||
#define ERROR_IMAGE_TYPE_UNKNOWN (-1401)
|
||||
#define ERROR_IMAGE_TEMPORARILY_UNAVAILABLE (-1402)
|
||||
#define ERROR_IMAGE_CHECKSUM (-1403)
|
||||
|
||||
#endif /* IMAGE_H */
|
||||
|
||||
Reference in New Issue
Block a user