Results 1 to 3 of 3

Thread: Cyghwr_io_flash_block_locking

  1. #1
    Join Date
    Dec 2013
    Posts
    12
    Rep Power
    1

    Default Cyghwr_io_flash_block_locking

    Hi!

    In many eCos files, there is
    #ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING

    I defined CYGHWR_IO_FLASH_BLOCK_LOCKING at the top of my .c file in the package an it is ok but I am afraid it is not the way eCos supposes. Could anybody tell me what the correct way is?
    Adding
    cdl_option CYGHWR_IO_FLASH_BLOCK_LOCKING {
    display "P8P allows block locking"
    default_value 1
    }
    to .cdl does not work.
    Last edited by Mikhail Kononov; December 17th, 2013 at 03:53 AM.

  2. #2
    Daixiwen is offline Moderator **Forum Master**
    Join Date
    May 2008
    Location
    Norway
    Posts
    4,440
    Rep Power
    1

    Default Re: Cyghwr_io_flash_block_locking

    You are right that this isn't the right way
    All those options are defined in the eCos configuration file ecos.ecc. The safest way to edit the options is to use the econfig utility.
    Definition of a man-year: 730 people trying to finish the project before lunch

  3. #3
    Join Date
    Dec 2013
    Posts
    12
    Rep Power
    1

    Default Re: Cyghwr_io_flash_block_locking

    Quote Originally Posted by Daixiwen View Post
    The safest way to edit the options is to use the econfig utility.
    I added implements CYGHWR_IO_FLASH_BLOCK_LOCKING to my .cdl and that helped.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •