public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: LONY David <david.lony@pragmadev.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Entry point
Date: Wed, 25 Apr 2007 13:21:00 -0000	[thread overview]
Message-ID: <462F562A.9050905@pragmadev.com> (raw)

Hi all,

I'm new to eCos and I wanted to know if it possible to define an entry 
point when eCos start?
For instance, I have this kind of code :

#include <stdio.h>

main()
{

    printf("Hello\n");
    return;
}

In Linux Synthetic Target template it would work great... but if I 
change my code to this :

#include <stdio.h>

void test()
{
    printf("Hello\n");
    return;
}

How I can specified to eCos kernel to execute this function? I see in 
gdb (when I debug eCos) that the function cyg_user_start is called so I 
change my code to this:

#include <stdio.h>

void cyg_user_start(void)
{
    printf("Hello\n");
}

And It work too... But I don't know if it's the good method to do this...
Could someone help me please?
PS : I'm using the uitron profile... (sorry for my english, I'm French 
and I know that my english it's bad...)

Thanks
Best regards

David LONY


-- 
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:[~2007-04-25 13:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25 13:21 LONY David [this message]
2007-04-25 14:14 ` [ECOS] " Grant Edwards
2007-04-25 14:18 ` [ECOS] " Andrew Lunn
2007-04-25 16:11 ` [ECOS] " Grant Edwards
2007-06-25 15:40 [ECOS] " Michele Portolan
2007-06-26  1:56 ` Gary Thomas

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=462F562A.9050905@pragmadev.com \
    --to=david.lony@pragmadev.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /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).