[ECOS] I2C and SPI porting help

Gary Thomas gary@mlbassoc.com
Fri Oct 28 15:09:00 GMT 2005


On Fri, 2005-10-28 at 16:03 +0100, Carlos Sobrinho wrote:
> Em Sexta, 28 de Outubro de 2005 15:50, o Gary Thomas escreveu:
> > On Fri, 2005-10-28 at 15:39 +0100, Carlos Sobrinho wrote:
> > > Em Sexta, 28 de Outubro de 2005 15:26, o Gary Thomas escreveu:
> > > > Could you post it here (so we may all benefit)?
> > > >
> > > > Does it use the cyg_XXX infrastructure?
> > >
> > > I believe that some sort of code or pseudo code could be very usefull to
> > > help people develop their own device driver and maybe, it could be added
> > > to the anoncvs.
> > >
> > > BTW, I currently have some device drivers for eCos and AEB-1 (ARM7):
> > > * GP2D12 Sharp IR receiver
> > > * GP2D02 Sharp IR receiver
> > > * SRF08 Ultrasonic Range Finder
> > > * 24Cxx E²PROM
> > > * Nokias LCD (3310/7110/etc)
> > > * Mini graphical library (lines, horizontal/vertical lines, progress
> > > bars, fonts, etc with a very low footprint...)
> > >
> > > Is this code that I should review to match eCos's structs and commit to
> > > CVS? Anyone interested?
> >
> > Absolutely!  The best way would be to send a patch against the [current]
> > CVS to ecos-patches@ecos.sourceware.org  We'll review the patch and then
> > apply to the repository, as appropriate.
> >
> > Of course, don't forget the copyright assignment (we have to have very
> > clear ownership of anything included into CVS).  Review the documents
> > at http://ecos.sourceware.org/ecos/assign.html
> >
> 
> Will do that.
> As soon as I port the bit bang SPI/I2C to the AEB-1 I'll (try) port the device 
> drivers to the eCos way and then send the copyright assignment.
> 
> I need to change a little of the code because I currently don't use the 
> cyg_drv_.. but the normal/kernel versions (cyg_mutex instead of 
> cyg_drv_mutex) but this should not be major problem.
> 
> At least, the graphical lib and the nokias display drivers should be usefull 
> to someone because of the low footprint. I'm estimating a footprint, 
> including driver, fonts and graphical lib of 8/15KB.
> 
> It has a frame buffer, optimized update (only the painted areas), some 
> optimized primitives and a tiny (6x4) font.
> 
> Regarding the copyright assignment, the site refers to company, what if I'm a 
> student and this is my hobby and all the work is mine? What should I put?

As long as the work is truly yours, just put "self"

I'd suggest that you send separate patches for each of the major
components.  That way, we can comment on them individually (it also
makes checking and thinking about them much simpler)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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



More information about the Ecos-discuss mailing list