public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] SPI
@ 2008-06-04 10:16 Huguenin Frédéric
  2008-06-04 11:02 ` Tom Deconinck
  0 siblings, 1 reply; 4+ messages in thread
From: Huguenin Frédéric @ 2008-06-04 10:16 UTC (permalink / raw)
  To: ecos-discuss

Hello,

How do you use the SPI bus for ARM with eCos ?

--
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] 4+ messages in thread

* Re: [ECOS] SPI
  2008-06-04 10:16 [ECOS] SPI Huguenin Frédéric
@ 2008-06-04 11:02 ` Tom Deconinck
       [not found]   ` <EEDC4D88C587AB4F96F5E092A0514BE503B0CDB6@01-orion.intra.eiaj.ch>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Deconinck @ 2008-06-04 11:02 UTC (permalink / raw)
  To: Huguenin Frédéric, ecos-discuss

Which ARM processor are you using?

For the Atmel family, there's an SPI driver available: devs/spi/arm/at91/

On Wed, Jun 4, 2008 at 12:16 PM, Huguenin Frédéric
<Frederic.Huguenin@he-arc.ch> wrote:
> Hello,
>
> How do you use the SPI bus for ARM with eCos ?
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>

--
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] 4+ messages in thread

* [ECOS] Re: RE : [ECOS] SPI
       [not found]   ` <EEDC4D88C587AB4F96F5E092A0514BE503B0CDB6@01-orion.intra.eiaj.ch>
@ 2008-06-04 13:30     ` Tom Deconinck
       [not found]       ` <EEDC4D88C587AB4F96F5E092A0514BE503B0CDBA@01-orion.intra.eiaj.ch>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Deconinck @ 2008-06-04 13:30 UTC (permalink / raw)
  To: Huguenin Frédéric, ecos-discuss

eCoscentric has some pretty decent documentation about eCos and SPI:
http://ecoscentric.com/ecospro/doc.cgi/html/ref/spi.html

To enable the driver you have to add these CDL packages to your platform:

 CYGPKG_IO_SPI : enables the SPI generic interface layer
 CYGPKG_DEVS_SPI_ARM_AT91 : enables the at91 SPI bus driver

You'll have to define an extra package to export your SPI devices,
like you do for i2c.
A good starting point might be the at91sam7sek target.

On Wed, Jun 4, 2008 at 2:42 PM, Huguenin Frédéric
<Frederic.Huguenin@he-arc.ch> wrote:
> Thanks I'm using the atmel. Does this driver have documentation ?
>
>
> -------- Message d'origine--------
> De: Tom Deconinck [mailto:t.deconinck@gmail.com]
> Date: mer. 04/06/2008 13:01
> À: Huguenin Frédéric; ecos-discuss@sourceware.org
> Objet : Re: [ECOS] SPI
>
> Which ARM processor are you using?
>
> For the Atmel family, there's an SPI driver available: devs/spi/arm/at91/
>
> On Wed, Jun 4, 2008 at 12:16 PM, Huguenin Frédéric
> <Frederic.Huguenin@he-arc.ch> wrote:
>> Hello,
>>
>> How do you use the SPI bus for ARM with eCos ?
>>
>> --
>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>
>>
>
>

--
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] 4+ messages in thread

* [ECOS] Re: RE : RE : [ECOS] SPI
       [not found]       ` <EEDC4D88C587AB4F96F5E092A0514BE503B0CDBA@01-orion.intra.eiaj.ch>
@ 2008-06-04 20:23         ` Tom Deconinck
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Deconinck @ 2008-06-04 20:23 UTC (permalink / raw)
  To: Huguenin Frédéric, ecos-discuss

You can just use C-code, but if you are using a target that is already
supported there is a big chance there's a cdl package define all
devices for that specific hardware target. For my hardware, I usually
create such a cdl package.

See the the ecoscentric documentation about SPI.
I was just referring to the at91sam7sek target as an example on how to
add the required SPI cdl packages to your target.

On Wed, Jun 4, 2008 at 4:14 PM, Huguenin Frédéric
<Frederic.Huguenin@he-arc.ch> wrote:
> I don't understand :
>
> --You'll have to define an extra package to export your SPI devices,
> --like you do for i2c.
> --A good starting point might be the at91sam7sek target.
>
> Do I have to create an eCos package ? Or it's just
> as standard C package in my project.
>
>
> -------- Message d'origine--------
> De: Tom Deconinck [mailto:t.deconinck@gmail.com]
> Date: mer. 04/06/2008 15:29
> À: Huguenin Frédéric; ecos-discuss@sourceware.org
> Objet : Re: RE : [ECOS] SPI
>
> eCoscentric has some pretty decent documentation about eCos and SPI:
> http://ecoscentric.com/ecospro/doc.cgi/html/ref/spi.html
>
> To enable the driver you have to add these CDL packages to your platform:
>
>  CYGPKG_IO_SPI : enables the SPI generic interface layer
>  CYGPKG_DEVS_SPI_ARM_AT91 : enables the at91 SPI bus driver
>
> You'll have to define an extra package to export your SPI devices,
> like you do for i2c.
> A good starting point might be the at91sam7sek target.
>
> On Wed, Jun 4, 2008 at 2:42 PM, Huguenin Frédéric
> <Frederic.Huguenin@he-arc.ch> wrote:
>> Thanks I'm using the atmel. Does this driver have documentation ?
>>
>>
>> -------- Message d'origine--------
>> De: Tom Deconinck [mailto:t.deconinck@gmail.com]
>> Date: mer. 04/06/2008 13:01
>> À: Huguenin Frédéric; ecos-discuss@sourceware.org
>> Objet : Re: [ECOS] SPI
>>
>> Which ARM processor are you using?
>>
>> For the Atmel family, there's an SPI driver available: devs/spi/arm/at91/
>>
>> On Wed, Jun 4, 2008 at 12:16 PM, Huguenin Frédéric
>> <Frederic.Huguenin@he-arc.ch> wrote:
>>> Hello,
>>>
>>> How do you use the SPI bus for ARM with eCos ?
>>>
>>> --
>>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>>
>>>
>>
>>
>
>

--
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] 4+ messages in thread

end of thread, other threads:[~2008-06-04 20:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-04 10:16 [ECOS] SPI Huguenin Frédéric
2008-06-04 11:02 ` Tom Deconinck
     [not found]   ` <EEDC4D88C587AB4F96F5E092A0514BE503B0CDB6@01-orion.intra.eiaj.ch>
2008-06-04 13:30     ` [ECOS] Re: RE : " Tom Deconinck
     [not found]       ` <EEDC4D88C587AB4F96F5E092A0514BE503B0CDBA@01-orion.intra.eiaj.ch>
2008-06-04 20:23         ` [ECOS] Re: RE : " Tom Deconinck

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).