# HG changeset patch # User jlarmour # Date 1159367086 0 # Node ID 8667859d61abf9b6adafa0e6b2feaf4b76e12bcf # Parent ef75ad79dfe3dd8ae69a10ec0249d019135246fd * src/flash_legacy.h: Undef HAL_FLASH_CACHES_* macros if the HAL supplied them and they're not needed. * cdl/io_flash.cdl, src/flash.c, src/flash_legacy.h, src/legacy_dev.c: add support for V2 drivers which can take care of the cache and interrupts themselves. diff --git a/packages/io/flash/current/ChangeLog b/packages/io/flash/current/ChangeLog --- a/packages/io/flash/current/ChangeLog +++ b/packages/io/flash/current/ChangeLog @@ -8,6 +8,9 @@ 2005-01-28 Nick Garnett + * src/flash_legacy.h: Undef HAL_FLASH_CACHES_* macros if the HAL + supplied them and they're not needed. + * src/legacy_api.c (flash_errmsg): Was missing. Add. 2004-12-02 Bart Veer @@ -46,6 +49,12 @@ 2004-11-25 Andrew Lunn + + * cdl/io_flash.cdl, src/flash.c, src/flash_legacy.h, + src/legacy_dev.c: add support for V2 drivers which can take care + of the cache and interrupts themselves. + 2004-11-22 Bart Veer * src/legacy_dev.c: remove .2ram attributes. These functions do @@ -459,6 +468,7 @@ 2000-07-29 Gary Thomas block_info[0].block_size; - size_t block_mask = ~(block_mask -1); + size_t block_mask = ~(block_size -1); int stat; _flash_read_buf = (code_fun*) cyg_flash_anonymizer(&flash_read_buf); @@ -208,7 +209,7 @@ flash_dev_query(void* data) { typedef void code_fun(void*); code_fun *_flash_query; - int d_cache, i_cache; + HAL_FLASH_CACHES_STATE(d_cache, i_cache); _flash_query = (code_fun*) cyg_flash_anonymizer(&flash_query);