Mercurial > flash_v2
comparison packages/devs/flash/synthv2/current/src/synth.c @ 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 | 96ec7e534d98 |
comparison
equal
deleted
inserted
replaced
| 1762:9c1d9e5039c2 | 1763:42c8ea63b78d |
|---|---|
| 167 dev->block_info = &priv->block_info[0]; | 167 dev->block_info = &priv->block_info[0]; |
| 168 | 168 |
| 169 return CYG_FLASH_ERR_OK; | 169 return CYG_FLASH_ERR_OK; |
| 170 } | 170 } |
| 171 | 171 |
| 172 // Map a hardware status to a package error | |
| 173 static int | |
| 174 synth_flash_hwr_map_error(struct cyg_flash_dev *dev, int err) | |
| 175 { | |
| 176 return err; | |
| 177 } | |
| 178 | |
| 179 /* This helps speed up the erase. */ | 172 /* This helps speed up the erase. */ |
| 180 static char empty[4096]; | 173 static char empty[4096]; |
| 181 static cyg_bool empty_inited = false; | 174 static cyg_bool empty_inited = false; |
| 182 | 175 |
| 183 // Return the size of the block which is at the given address. | 176 // Return the size of the block which is at the given address. |
| 260 synth_flash_init, | 253 synth_flash_init, |
| 261 synth_flash_query, | 254 synth_flash_query, |
| 262 synth_flash_erase_block, | 255 synth_flash_erase_block, |
| 263 synth_flash_program, | 256 synth_flash_program, |
| 264 NULL, // read | 257 NULL, // read |
| 265 synth_flash_hwr_map_error, | |
| 266 cyg_flash_devfn_lock_nop, | 258 cyg_flash_devfn_lock_nop, |
| 267 cyg_flash_devfn_unlock_nop); | 259 cyg_flash_devfn_unlock_nop); |
| 268 | 260 |
| 269 static struct cyg_flash_synth_priv synth_flash_priv = { | 261 static struct cyg_flash_synth_priv synth_flash_priv = { |
| 270 .block_size = CYGNUM_FLASH_SYNTH_V2_BLOCKSIZE, | 262 .block_size = CYGNUM_FLASH_SYNTH_V2_BLOCKSIZE, |
