Skip to content
Snippets Groups Projects
Commit ebbcbd3f authored by oharboe's avatar oharboe
Browse files

lingering change for eCos flash driver

git-svn-id: svn://svn.berlios.de/openocd/trunk@366 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent d17e1cd9
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,10 @@ typedef struct ecosflash_flash_bank_s ...@@ -78,6 +78,10 @@ typedef struct ecosflash_flash_bank_s
static const int sectorSize=0x10000; static const int sectorSize=0x10000;
char *
flash_errmsg(int err);
#ifndef __ECOS
#define FLASH_ERR_OK 0x00 // No error - operation complete #define FLASH_ERR_OK 0x00 // No error - operation complete
#define FLASH_ERR_INVALID 0x01 // Invalid FLASH address #define FLASH_ERR_INVALID 0x01 // Invalid FLASH address
#define FLASH_ERR_ERASE 0x02 // Error trying to erase #define FLASH_ERR_ERASE 0x02 // Error trying to erase
...@@ -131,7 +135,7 @@ flash_errmsg(int err) ...@@ -131,7 +135,7 @@ flash_errmsg(int err)
return "Unknown error"; return "Unknown error";
} }
} }
#endif
/* flash bank ecosflash <base> <size> <chip_width> <bus_width> <target#> <driverPath> /* flash bank ecosflash <base> <size> <chip_width> <bus_width> <target#> <driverPath>
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment