lingering change for eCos flash driver
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 28 Feb 2008 08:37:01 +0000 (08:37 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 28 Feb 2008 08:37:01 +0000 (08:37 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@366 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/ecos.c

index 6aec41d..09ed250 100644 (file)
@@ -78,6 +78,10 @@ typedef struct ecosflash_flash_bank_s
 \r
 static const int sectorSize=0x10000;\r
 \r
+char *\r
+flash_errmsg(int err);\r
+\r
+#ifndef __ECOS\r
 #define FLASH_ERR_OK              0x00  // No error - operation complete\r
 #define FLASH_ERR_INVALID         0x01  // Invalid FLASH address\r
 #define FLASH_ERR_ERASE           0x02  // Error trying to erase\r
@@ -131,7 +135,7 @@ flash_errmsg(int err)
         return "Unknown error";\r
     }\r
 }\r
-\r
+#endif\r
 \r
 /* flash bank ecosflash <base> <size> <chip_width> <bus_width> <target#> <driverPath>\r
  */\r