[ECOS] 3.0b1: olpce2294 CAN support?

Sergei Gavrikov sergei.gavrikov@gmail.com
Mon Mar 9 13:47:00 GMT 2009


Rasmus Ljungmann Pedersen wrote:
> I'm just checking out the 3.0 beta 1, and notices, that even though I
> add the 'CAN device drivers' package to the olpce2294 template, I can't
> specify the speeds and other things of the CAN ports. I have used eCos
> 2.0 with a custom package describing the Olimex e2294 board, and even
> though the olpce2294 template, and the old one I used is very similar, I
> can't figure out if the olpce2294 just lacks CAN support, or it is
> included in some clever way that I have yet to realise :)
> 
> If the CAN support is missing for the olpce2294 template, is this
> something that will be addressed before 3.0 is released?

CAN support for lpc2xxx targets had been written by Uwe Kindler. To add
CAN suppport for the target, you have to implement the eCos interfaces
CYGINT_DEVS_CAN_LPC2XXX_CAN{0,1} for the target. Olpce2294 has not it.
You can look at lpc24xx/ea2468 target for a reference. Certainly, what
Uwe's target has CAN support. It seems for me, you have to tweak the
hal_arm_lpc2xxx_olpce2294.cdl, plf_io.h, olpce2294_misc.c (perhaps and
hal_platform_setup.h), to get CAN support on the target. I'd  not added
same tweaks for olpce2294 platform.

Sergei


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