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: Re: How to use CAN in poll mode?


>-----Original Message-----
>From: Uwe Kindler [mailto:uwe.kindler@cetoni.de]
>Sent: Tuesday, February 6, 2007 01:48 AM
>To: ecos-discuss@ecos.sourceware.org, iucgnaw@msn.com
>Subject: [ECOS] Re: How to use CAN in poll mode?
>
>Hello,
>
>the CAN driver currently doesn't support polling mode. I implemented the
>CAN device driver similar to the serial device driver so if you would
>like to implement polling mode in CAN driver looking into the serial
>drivers is maybe better than looking into the ethernet drivers. At the
>moment I do some small improvements for the CAN driver - if polling mode
>is an issue for you I could try to implemet it (or you do it by yourself
>;o).
>

You can of course enable interrupts in redboot. We did this a couple of years ago to do exactly what you want to accomplish; offering the redboot interface on a CAN link instead of serial or ethernet.

We decided to use interrupts in redboot afterall because we had a custom CAN stack and interrupt-based CAN drivers which we wanted to use and integrate with redboot with minimal effort.

Although you can find many arguments against enabling interrupts in redboot, the infrastructure is there (the ISR/DSR mechanism works in the absence of a kernel) and that solution worked very well for us.

Bob




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