diff packages/io/flash/current/src/flashiodev.c @ 1722:c4240af0fa28

* removed the functions cyg_flash_get_limits and cyg_flash_get_block_info. Reimplemented the legacy functions that depended on them and flashiodev.c
author asl
date Sat, 21 Aug 2004 13:47:55 +0000
parents c506b95a6346
children 96ec7e534d98
line wrap: on
line diff
--- a/packages/io/flash/current/src/flashiodev.c
+++ b/packages/io/flash/current/src/flashiodev.c
@@ -122,9 +122,10 @@ flashiodev_lookup(struct cyg_devtab_entr
   if (dev->use_offset) {
     // dev->start the contain the offset to the beginning of the block
     // dev->end is the length of the block
-    cyg_flashaddr_t start, end;
-    cyg_flash_get_limits(&start, &end);
-    dev->start = dev->start + start;
+    cyg_flash_info_t info;
+    
+    cyg_flash_get_info(0, &info);
+    dev->start = dev->start + info.start;
     dev->end = dev->start + dev->end;
   }
   if (dev->use_absolute) {