* [ECOS] Does i2c module work in RedBoot?
@ 2007-02-12 2:51 Grant Edwards
2007-02-12 4:17 ` wang cui
0 siblings, 1 reply; 5+ messages in thread
From: Grant Edwards @ 2007-02-12 2:51 UTC (permalink / raw)
To: ecos-discuss
Does the i2c package work for RedBoot?
--
Grant Edwards grante Yow! I want a VEGETARIAN
at BURRITO to go... with
visi.com EXTRA MSG!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] Does i2c module work in RedBoot?
2007-02-12 2:51 [ECOS] Does i2c module work in RedBoot? Grant Edwards
@ 2007-02-12 4:17 ` wang cui
2007-02-12 15:25 ` [ECOS] " Grant Edwards
0 siblings, 1 reply; 5+ messages in thread
From: wang cui @ 2007-02-12 4:17 UTC (permalink / raw)
To: grante, ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 969 bytes --]
Yes, I use it to drive WallClock chip in RedBoot.
>From: Grant Edwards <grante@visi.com>
>To: ecos-discuss@sources.redhat.com
>Subject: [ECOS] Does i2c module work in RedBoot?
>Date: Mon, 12 Feb 2007 02:51:08 +0000 (UTC)
>
>Does the i2c package work for RedBoot?
>
>--
>Grant Edwards grante Yow! I want a
VEGETARIAN
> at BURRITO to go... with
> visi.com EXTRA MSG!!
>
>
>--
>Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ECOS] Re: Does i2c module work in RedBoot?
2007-02-12 4:17 ` wang cui
@ 2007-02-12 15:25 ` Grant Edwards
2007-02-12 16:27 ` Bart Veer
0 siblings, 1 reply; 5+ messages in thread
From: Grant Edwards @ 2007-02-12 15:25 UTC (permalink / raw)
To: ecos-discuss
On 2007-02-12, wang cui <iucgnaw@msn.com> wrote:
>>Does the i2c package work for RedBoot?
> Yes, I use it to drive WallClock chip in RedBoot.
Thanks. I've heard from a couple others who also use the i2c
module in RedBoot.
I glanced at the souce code and noticed calls to mutex routines
and wasn't sure if that would cause problems or not.
--
Grant Edwards grante Yow! I'm thinking about
at DIGITAL READ-OUT systems
visi.com and computer-generated
IMAGE FORMATIONS...
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Re: Does i2c module work in RedBoot?
2007-02-12 15:25 ` [ECOS] " Grant Edwards
@ 2007-02-12 16:27 ` Bart Veer
2007-02-12 16:30 ` Grant Edwards
0 siblings, 1 reply; 5+ messages in thread
From: Bart Veer @ 2007-02-12 16:27 UTC (permalink / raw)
To: grante; +Cc: ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
>>>>> "Grant" == Grant Edwards <grante@visi.com> writes:
Grant> On 2007-02-12, wang cui <iucgnaw@msn.com> wrote:
>>> Does the i2c package work for RedBoot?
>> Yes, I use it to drive WallClock chip in RedBoot.
Grant> Thanks. I've heard from a couple others who also use the
Grant> i2c module in RedBoot.
Grant> I glanced at the souce code and noticed calls to mutex
Grant> routines and wasn't sure if that would cause problems or
Grant> not.
Those calls involve the driver API rather than the kernel API,
allowing the generic I2C code to work correctly in both a
multi-threaded kernel configuration and in a polled-only configuration
like RedBoot. However note that it is not just the generic I2C support
CYGPKG_IO_I2C you need to worry about. Typically there will also be
a hardware-specific device driver and that needs to do the right thing
as well. Usually that is not hard - in the tx and rx routines check
whether or not interrupts are enabled and then either poll or wait for
the interrupt - but some device drivers may not bother.
If instead of a driver for some I2C bus master hardware you are using
the bitbanging support in the generic package, that is usable in both
interrupt-driven and polled environments.
Bart
--
Bart Veer eCos Configuration Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
Besuchen Sie uns vom 13.-15.02.07 auf der Embedded World 2007, Stand 11-336
Visit us at Embedded World 2007, Nürnberg, Germany, 13-15 Feb, Stand 11-336
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ECOS] Re: Does i2c module work in RedBoot?
2007-02-12 16:27 ` Bart Veer
@ 2007-02-12 16:30 ` Grant Edwards
0 siblings, 0 replies; 5+ messages in thread
From: Grant Edwards @ 2007-02-12 16:30 UTC (permalink / raw)
To: ecos-discuss
On 2007-02-12, Bart Veer <bartv@ecoscentric.com> wrote:
> Grant> Thanks. I've heard from a couple others who also use the
> Grant> i2c module in RedBoot.
>
> Grant> I glanced at the souce code and noticed calls to mutex
> Grant> routines and wasn't sure if that would cause problems or
> Grant> not.
>
> Those calls involve the driver API rather than the kernel API,
> allowing the generic I2C code to work correctly in both a
> multi-threaded kernel configuration and in a polled-only
> configuration like RedBoot. However note that it is not just
> the generic I2C support CYGPKG_IO_I2C you need to worry about.
> Typically there will also be a hardware-specific device driver
> and that needs to do the right thing as well. Usually that is
> not hard - in the tx and rx routines check whether or not
> interrupts are enabled and then either poll or wait for the
> interrupt - but some device drivers may not bother.
>
> If instead of a driver for some I2C bus master hardware you
> are using the bitbanging support in the generic package, that
> is usable in both interrupt-driven and polled environments.
Yes, I'm planning on using the bit-banging driver (I should
have mentioned that), so it sounds like there shouldn't be any
problems.
--
Grant Edwards grante Yow! Now my EMOTIONAL
at RESOURCES are heavily
visi.com committed to 23
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-12 16:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 2:51 [ECOS] Does i2c module work in RedBoot? Grant Edwards
2007-02-12 4:17 ` wang cui
2007-02-12 15:25 ` [ECOS] " Grant Edwards
2007-02-12 16:27 ` Bart Veer
2007-02-12 16:30 ` Grant Edwards
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).