From: Edgar Grimberg <edgar.grimberg@zylin.com>
To: Lars Dahlin <haraxidix@gmail.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] connect ethernet cable at run-time
Date: Thu, 24 Sep 2009 11:45:00 -0000 [thread overview]
Message-ID: <d0f570ed0909240445u20fc88fdj885939199feef669@mail.gmail.com> (raw)
In-Reply-To: <6afa98b0909240334i7536f39drfce21817f2fe686c@mail.gmail.com>
Hi Lars,
> 2) When the network cable is connected, cyg_netint wakes up and does its thing.
You can write an interrupt routine for the PHY chip and have that
start/stop the ethernet.
As an example, look at:
static cyg_uint32 phy_isr(cyg_vector_t vector, cyg_addrword_t data)
static void phy_dsr(cyg_vector_t vector, cyg_ucount32 count,
cyg_addrword_t data)
from
http://www.ecosforge.net/ecosforge/trunk/ecos_mpc8313/packages/devs/eth/powerpc/quicc2pro/current/src/tsec.c
Regards,
Edgar
>
> Or is there a better way? The problem is that i dont know how to do either way.
>
> All ideas are welcome. Thank you in advance.
>
> Best Regards
> Lars Dahlin
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>
--
Edgar Grimberg
System Developer
Zylin AS
ZY1000 JTAG Debugger http://www.zylin.com/zy1000.html
Phone: (+47) 51 63 25 00
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2009-09-24 11:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-24 10:34 Lars Dahlin
2009-09-24 11:45 ` Edgar Grimberg [this message]
2009-09-24 14:42 ` [ECOS] " Grant Edwards
2009-09-24 16:26 ` Jonathan Larmour
2009-09-24 16:32 ` Grant Edwards
2009-09-25 0:11 ` Jonathan Larmour
2009-09-25 1:23 ` Laurie Gellatly
2009-09-25 3:20 ` Grant Edwards
2009-09-25 3:36 ` Laurie Gellatly
2009-09-25 13:16 ` Jonathan Larmour
2009-09-25 14:54 ` Grant Edwards
2009-09-26 8:12 ` [ECOS] Re: connect Ethernet " Laurie Gellatly
[not found] ` <26548.8079087392$1253952764@news.gmane.org>
2009-09-26 15:11 ` Grant Edwards
2009-09-27 22:06 ` [ECOS] Re: connect ethernet " Jonathan Larmour
2009-09-25 3:12 ` Grant Edwards
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=d0f570ed0909240445u20fc88fdj885939199feef669@mail.gmail.com \
--to=edgar.grimberg@zylin.com \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=haraxidix@gmail.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).