Mercurial > flash_v2
diff packages/io/flash/current/src/legacy_dev.c @ 1775:79275fdb4f20
* src/legacy_dev.c (legacy_flash_program): Added missing definition
of block_size.
* legacy_api.c: Added missing wrappers for flash_lock and
flash_unlock
| author | asl |
|---|---|
| date | Fri, 02 Feb 2007 20:06:03 +0000 |
| parents | 8667859d61ab |
| children |
line wrap: on
line diff
--- a/packages/io/flash/current/src/legacy_dev.c +++ b/packages/io/flash/current/src/legacy_dev.c @@ -142,6 +142,7 @@ legacy_flash_program(struct cyg_flash_de { typedef int code_fun(cyg_flashaddr_t, const void *, int, unsigned long, int); code_fun *_flash_program_buf; + size_t block_size = dev->block_info[0].block_size; size_t block_mask = ~(block_size -1); int stat;
