Attached is a patch to

ecos/packages/devs/flash/atmel/dataflash/current/src/devs_flash_atmel_dataflash.c

to correct bad sector count for AT45DB642 dataflash device.

BTW - Perhaps the CDL file for the dataflash driver should also be
changed at this time. Maybe "parent CYGPKG_IO_FLASH" should be added.

-- 
+---------------------------------------------
| Daniel Helgason <[email protected]>
--- a/ecos/packages/devs/flash/atmel/dataflash/current/src/devs_flash_atmel_dataflash.c
+++ b/ecos/packages/devs/flash/atmel/dataflash/current/src/devs_flash_atmel_dataflash.c
@@ -172,7 +172,7 @@
                         32, 32, 32, 32, 32, 32, 32, 32,
                         32, 32, 32, 32, 32, 32, 32, 32,
                         32, 32, 32, 32, 32, 32, 32, 32, 32 },
-        sector_count: 35
+        sector_count: 33
     },
     { 0 }
 };

Reply via email to