changeset 1046:b3844239133a

* include/flash_at49xxxx.inl: wait_while_busy needs to be in RAM since its called while the flash is not readable.
author asl
date Tue, 10 Jun 2003 11:20:05 +0000
parents 2c741788379c
children 3c7a4822ecde
files packages/devs/flash/atmel/at49xxxx/current/ChangeLog packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx.inl
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/flash/atmel/at49xxxx/current/ChangeLog
+++ b/packages/devs/flash/atmel/at49xxxx/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-10  Øyvind Harboe  <oyvind.harboe@zylin.com>
+
+	* include/flash_at49xxxx.inl: wait_while_busy needs to be in RAM
+	since its called while the flash is not readable.
+	
 2002-07-12  Tim Drury (tdrury@siliconmotorsports.com>
 
 	* include/flash_at49xxxx.inl: added support for AT49LV1614
--- a/packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx.inl
+++ b/packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx.inl
@@ -124,7 +124,8 @@ int  flash_erase_block(void* block, unsi
     __attribute__ ((section (".2ram.flash_erase_block")));
 int  flash_program_buf(void* addr, void* data, int len)
     __attribute__ ((section (".2ram.flash_program_buf")));
-
+static int wait_while_busy(int timeout, volatile flash_data_t* addr_ptr)
+    __attribute__ ((section (".2ram.text")));
 
 //----------------------------------------------------------------------------
 // Initialize driver details