Mercurial > flash_v2
diff packages/devs/flash/intel/stratav2/current/include/flash_strata_v2.inl @ 1763:42c8ea63b78d
Eliminate hwr_map_error() from the V2 driver interface, it no longer
serves any useful purpose
| author | bartv |
|---|---|
| date | Mon, 29 Nov 2004 14:49:20 +0000 |
| parents | 9c1d9e5039c2 |
| children |
line wrap: on
line diff
--- a/packages/devs/flash/intel/stratav2/current/include/flash_strata_v2.inl +++ b/packages/devs/flash/intel/stratav2/current/include/flash_strata_v2.inl @@ -329,7 +329,7 @@ static int strata_erase_block (struct cy if (len == 0) stat = 0; } - return stat; + return strata_hwr_map_error(dev, stat); } //---------------------------------------------------------------------------- @@ -434,7 +434,7 @@ strata_program_buf (struct cyg_flash_dev bad: BA[0] = FLASH_Reset; - return stat; + return strata_hwr_map_error(dev, stat); } #ifdef CYGOPT_DEVS_FLASH_STRATA_V2_LOCKING @@ -522,7 +522,7 @@ strata_unlock_block(struct cyg_flash_dev // Restore ROM to "normal" mode ROM[0] = FLASH_Reset; - return stat; + return strata_hwr_map_error(dev, stat); } //---------------------------------------------------------------------------- @@ -552,7 +552,7 @@ strata_lock_block(struct cyg_flash_dev * // Restore ROM to "normal" mode ROM[0] = FLASH_Reset; - return stat; + return strata_hwr_map_error(dev, stat); } #endif @@ -565,7 +565,6 @@ static CYG_FLASH_FUNS (cyg_flash_strata_ strata_erase_block, strata_program_buf, NULL, - strata_hwr_map_error, strata_lock_block, strata_unlock_block); #else @@ -575,7 +574,6 @@ static CYG_FLASH_FUNS (cyg_flash_strata_ strata_erase_block, strata_program_buf, NULL, - strata_hwr_map_error, cyg_flash_devfn_lock_nop, cyg_flash_devfn_unlock_nop); #endif
