Mercurial > flash_v2
comparison packages/devs/flash/arm/ebsa285/current/src/ebsa285_flash.c @ 119:77cec8369160 ecos-sw-2000-09-01
Merge from eCos master repository on 2000-09-01-07:47:03-BST
| author | jlarmour |
|---|---|
| date | Fri, 01 Sep 2000 13:45:23 +0000 |
| parents | bd1a71e3e476 |
| children | 6b5f480c6929 |
comparison
equal
deleted
inserted
replaced
| 118:59c1a83fb200 | 119:77cec8369160 |
|---|---|
| 88 // Map a hardware status to a package error | 88 // Map a hardware status to a package error |
| 89 int | 89 int |
| 90 flash_hwr_map_error(int err) | 90 flash_hwr_map_error(int err) |
| 91 { | 91 { |
| 92 if (err & 0x7E) { | 92 if (err & 0x7E) { |
| 93 return FLASH_ERR_ERASE; // FIXME | 93 if (err & 0x10) { |
| 94 return FLASH_ERR_PROGRAM; | |
| 95 } else | |
| 96 if (err & 0x20) { | |
| 97 return FLASH_ERR_ERASE; | |
| 98 } else | |
| 99 return FLASH_ERR_HWR; // FIXME | |
| 94 } else { | 100 } else { |
| 95 return FLASH_ERR_OK; | 101 return FLASH_ERR_OK; |
| 96 } | 102 } |
| 97 } | 103 } |
| 98 | 104 |
