From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8807 invoked by alias); 26 Mar 2007 10:43:38 -0000 Received: (qmail 8793 invoked by uid 9341); 26 Mar 2007 10:43:36 -0000 Date: Mon, 26 Mar 2007 10:43:00 -0000 Message-ID: <20070326104336.8791.qmail@sourceware.org> From: asl@sourceware.org To: ecos-cvs@ecos.sourceware.org Subject: ecos/packages/io/can/current ChangeLog cdl/io_ ... Mailing-List: contact ecos-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: , Sender: ecos-cvs-owner@sourceware.org List-Subscribe: X-SW-Source: 2007/txt/msg00065.txt.bz2 CVSROOT: /cvs/ecos Module name: ecos Changes by: asl@sourceware.org 2007-03-26 11:43:36 Modified files: packages/io/can/current: ChangeLog packages/io/can/current/cdl: io_can.cdl packages/io/can/current/doc: can_driver_doc.html packages/io/can/current/include: can.h canio.h packages/io/can/current/src: can.c Added files: packages/io/can/current/tests: can_filter.c can_hdi.c can_load.c can_remote.c can_test_aux.inl can_tx.c Log message: * cdl/io_can.cdl: Added several interfaces for implementation by device drivers. Moved several configuration options from device drivers to the generic CAN driver. With this design a device driver does not need to provide all configuration options in its CDL file - it simply needs to implement the provided interfaces. The drawback of this decicsion is, that it is not possible to control these options independently for several CAN devices. (But most platforms will have only 1 channel) Added configuration option CYGBLD_IO_CAN_EXTRA_TESTS. This option enables the build of the interactive CAN tests. * test/can_filter: Added interactive message filtering test * test/can_hdi: Added interactive hardware description interface test * test/can_load: Added interactive message handling (reception, transmission) test. * test/can_remote: Added interactive remote response buffer test * test/can_tx: Added interactive basic TX test. All tests are not part of the eCos test framework because they are interactive. That means, they require interaction with another user controlled CAN node. * include/can.h: Added identifier masks for standard and extended identifiers. Added the line #include CYGDAT_IO_CAN_DEVICE_INL. This enables a device driver to provide an own device inline file. In this inline file the driver may define own data types for CAN messages (for internal storage of CAN messages (see AT91SAM7 CAN driver)) * include/canio.h: Added baudrate CYGNUM_CAN_KBAUD_AUTO - support of automatic baudrate detection if a driver supports such a feature. Added state CYGNUM_CAN_STATE_CONFIG and mode CYGNUM_CAN_MODE_CONFIG. The application may use these identifiers to set the CAN device into a state where it is safe to add/remove/configure message buffers. Added union data type cyg_can_msg_data. With this data type a 4 byte alignment of message data is guaranteed, an byte, word and dword access to the data is possible and an assignment of two CAN datas are possible now. cyg_can_message now uses cyg_can_msg_data union for CAN data. Replaced SW-Filt flag by autobaud flag in HDI. Added CAN message access macros for read/write acces of CAN message structures. These macros hide implementation of CAN message from application. * src/can.c: Added support for device driver defined CAN message data types