Attached is a patch to

ecos/packages/io/flash/current/cdl/io_flash.cdl

to fix bad "requires" constraint on CYGNUM_IO_FLASH_BLOCK_OFFSET_n in
io_flash.cdl file.

In the current version, it is not possible to position a block device at
offset 0 in the flash using "Static configuration via offset" option.

-- 
+---------------------------------------------
| Daniel Helgason <[email protected]>
--- a/packages/io/flash/current/cdl/io_flash.cdl
+++ b/packages/io/flash/current/cdl/io_flash.cdl
@@ -219,7 +219,7 @@
         default_value    1
         compile          legacy_api.c
         description      "
-            Provide an implementation of the lagacy user API. This is mapped 
+            Provide an implementation of the legacy user API. This is mapped
             onto the new API via a small layer of code"
     }
         
@@ -283,7 +283,7 @@
 			display         "Length"
 			flavor          data
 			default_value   0
-			requires        0 != CYGNUM_IO_FLASH_BLOCK_OFFSET_$::dev
+			requires        0 != CYGNUM_IO_FLASH_BLOCK_LENGTH_$::dev
 			description     "
                             This gives the length of the region of flash given over
                             to this block device."

Reply via email to