diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-28 08:37:01 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-28 08:37:01 +0000 |
commit | ebbcbd3f29d16dbc183c037d2e9716e6cd49c922 (patch) | |
tree | 1c9a3f1673dcb45c98d0188bed93e02c2ce08513 /src | |
parent | d17e1cd93384d56886be7e67cf2b31e97118d811 (diff) | |
download | openocd+libswd-ebbcbd3f29d16dbc183c037d2e9716e6cd49c922.tar.gz openocd+libswd-ebbcbd3f29d16dbc183c037d2e9716e6cd49c922.tar.bz2 openocd+libswd-ebbcbd3f29d16dbc183c037d2e9716e6cd49c922.tar.xz openocd+libswd-ebbcbd3f29d16dbc183c037d2e9716e6cd49c922.zip |
lingering change for eCos flash driver
git-svn-id: svn://svn.berlios.de/openocd/trunk@366 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/ecos.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/flash/ecos.c b/src/flash/ecos.c index 6aec41d6..09ed2507 100644 --- a/src/flash/ecos.c +++ b/src/flash/ecos.c @@ -78,6 +78,10 @@ typedef struct ecosflash_flash_bank_s static const int sectorSize=0x10000;
+char *
+flash_errmsg(int err);
+
+#ifndef __ECOS
#define FLASH_ERR_OK 0x00 // No error - operation complete
#define FLASH_ERR_INVALID 0x01 // Invalid FLASH address
#define FLASH_ERR_ERASE 0x02 // Error trying to erase
@@ -131,7 +135,7 @@ flash_errmsg(int err) return "Unknown error";
}
}
-
+#endif
/* flash bank ecosflash <base> <size> <chip_width> <bus_width> <target#> <driverPath>
*/
|