This is the mail archive of the ecos-patches@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]

Improved FlexCAN device driver


Hello,

the following patches improves and bugfixes the eCos CAN driver and the Motorola Coldfire FlexCAN device driver.

1. FlexCAN driver:
The patch improves performance of CAN driver. When the driver was configured to receive all CAN standard and extended frames, and a burst of CAN messages occured, then the old driver lost some messages or a overrun occured at high baud rates. In this improved version the user can configure the number of message boxes that will be used for buffering incoming messages. Up to 15 message buffers are now available for reception at the same time. No messages will be lost.

2. Generic CAN I/O driver
Replaced the configuration keys CYG_IO_SET_CONFIG_CAN_REMOTE_BUF            CYG_IO_SET_CONFIG_CAN_FILTER_ALL and CYG_IO_SET_CONFIG_CAN_FILTER_MSG            with CYG_IO_SET_CONFIG_CAN_MSGBUF because all three configuration key was related to the configuration of CAN message buffers. Now an additional cfg_id field in the cyg_can_msgbuf_cfg structure defines the exact configuration task. So it is possible for a CAN device driver to add additional configuration options without changing the config_keys file. 

And one question: What about the I2C driver for Motorola Coldfire I have submitted? Still work in progress?

Regards, Uwe

uwe.kindler@cetoni.de
http://www.cetoni.de

Attachment: can_config_keys.patch
Description: Binary data

Attachment: can_flexcan.patch
Description: Binary data

Attachment: can_io.patch
Description: Binary data

Attachment: can_doc.patch
Description: Binary data


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