This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LPC, SPI and cyg_spi_devices


Sergei Gavrikov wrote:
> Alexander Aganichev wrote:
> > Just wondering if there's any guideline on cyg_spi_device
> > initialization for LPC? I think last time I ported whole SPI driver
> > from AT91, but now I see LCP2XXX driver in the main tree but without
> > cyg_spi_device initialization. Not sure if it now could be copied from
> > AT91 without serious modifications though.
> 
> Alexander, a few weeks ago I played with SPI on Olimex LPC-H2294 board.
> There is a short tail on bitbucket about. It has sources.

Just to save your time (device init):
http://bitbucket.org/tickling/olpcx22xx/src/tip/examples/spi/spiwiz1.c#cl-106

Sergei

P.S.

Acknowledgements

Hans Rosenfeld for lpc2xxx spi


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]