Mercurial > ecos-v3_0-branch
comparison packages/io/flash/current/include/flash.h @ 136:a9ac27ec7abc ecos-sw-2000-11-17
Merge from eCos master repository on 2000-11-17-18:24:25-GMT
| author | jlarmour |
|---|---|
| date | Fri, 17 Nov 2000 23:16:43 +0000 |
| parents | 6bd9d475ed4b |
| children | 450e4e1f1e80 |
comparison
equal
deleted
inserted
replaced
| 135:3bc2abeae9ff | 136:a9ac27ec7abc |
|---|---|
| 59 extern int flash_get_limits(void *base, void **start, void **end); | 59 extern int flash_get_limits(void *base, void **start, void **end); |
| 60 extern int flash_get_block_info(int *block_size, int *blocks); | 60 extern int flash_get_block_info(int *block_size, int *blocks); |
| 61 extern bool flash_code_overlaps(void *start, void *end); | 61 extern bool flash_code_overlaps(void *start, void *end); |
| 62 extern char *flash_errmsg(int err); | 62 extern char *flash_errmsg(int err); |
| 63 | 63 |
| 64 #define FLASH_ERR_OK 0x00 // No error - operation complete | 64 #define FLASH_ERR_OK 0x00 // No error - operation complete |
| 65 #define FLASH_ERR_INVALID 0x01 // Invalid FLASH address | 65 #define FLASH_ERR_INVALID 0x01 // Invalid FLASH address |
| 66 #define FLASH_ERR_ERASE 0x02 // Error trying to erase | 66 #define FLASH_ERR_ERASE 0x02 // Error trying to erase |
| 67 #define FLASH_ERR_LOCK 0x03 // Error trying to lock/unlock | 67 #define FLASH_ERR_LOCK 0x03 // Error trying to lock/unlock |
| 68 #define FLASH_ERR_PROGRAM 0x04 // Error trying to program | 68 #define FLASH_ERR_PROGRAM 0x04 // Error trying to program |
| 69 #define FLASH_ERR_PROTOCOL 0x05 // Generic error | 69 #define FLASH_ERR_PROTOCOL 0x05 // Generic error |
| 70 #define FLASH_ERR_PROTECT 0x06 // Device/region is write-protected | 70 #define FLASH_ERR_PROTECT 0x06 // Device/region is write-protected |
| 71 #define FLASH_ERR_NOT_INIT 0x07 // FLASH info not yet initialized | 71 #define FLASH_ERR_NOT_INIT 0x07 // FLASH info not yet initialized |
| 72 #define FLASH_ERR_HWR 0x08 // Hardware (configuration?) problem | 72 #define FLASH_ERR_HWR 0x08 // Hardware (configuration?) problem |
| 73 #define FLASH_ERR_ERASE_SUSPEND 0x09 // Device is in erase suspend mode | |
| 74 #define FLASH_ERR_PROGRAM_SUSPEND 0x0a // Device is in in program suspend mode | |
| 73 | 75 |
| 74 #ifdef _FLASH_PRIVATE_ | 76 #ifdef _FLASH_PRIVATE_ |
| 75 | 77 |
| 76 struct flash_info { | 78 struct flash_info { |
| 77 void *work_space; | 79 void *work_space; |
