public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andre-John Mas <ajmas@sympatico.ca>
To: <ecos-discuss@sources.redhat.com>
Subject: [ECOS] re: Reading flash config value from application
Date: Wed, 21 Jun 2006 15:34:00 -0000	[thread overview]
Message-ID: <20060621153425.EFDW10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca> (raw)

Hi,

Just tried the code below and the 'CYGACC_CALL_IF_FLASH_CFG_OP' call returns false, just as in the code I had.

Its possible as Thomas suggests that maybe I have code which does not match what Gary has. I am currrently using 2.0.51, I believe.


#include <stdio.h>
#include <cyg/kernel/kapi.h>
#include <cyg/hal/hal_if.h>
#include <network.h>

#define CONFIG_IP 5

int
main(int argc, char *argv[])
{
    unsigned long addr;

    if (CYGACC_CALL_IF_FLASH_CFG_OP(CYGNUM_CALL_IF_FLASH_CFG_GET, 
                                    "bootp_my_ip", 
                                    &addr, 
                                    CONFIG_IP)) {
        diag_dump_buf(&addr, sizeof(addr));
    } else {
        printf("Can't get 'bootp_my_ip'\n");
    }
    printf("fconfig_test done\n");
    return 0;
}



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2006-06-21 15:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 15:34 Andre-John Mas [this message]
2006-06-21 15:40 ` Gary Thomas
2006-06-21 16:04 ` St. Zarifakis
2006-06-22 12:58 ` [ECOS] " John Dallaway
2006-06-21 18:11 Re: [ECOS] " Andre-John Mas
2006-06-22  9:21 ` St. Zarifakis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060621153425.EFDW10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca \
    --to=ajmas@sympatico.ca \
    --cc=ajmas@bigfoot.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).