From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5010 invoked by alias); 22 Jul 2008 19:40:03 -0000 Received: (qmail 4996 invoked by uid 9341); 22 Jul 2008 19:40:03 -0000 Date: Tue, 22 Jul 2008 19:40:00 -0000 Message-ID: <20080722194003.4994.qmail@sourceware.org> From: asl@sourceware.org To: ecos-cvs@ecos.sourceware.org Subject: ecos/packages/devs/can/arm/lpc2xxx/current Cha ... 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: 2008/txt/msg00149.txt.bz2 CVSROOT: /cvs/ecos Module name: ecos Changes by: asl@sourceware.org 2008-07-22 19:40:03 Modified files: packages/devs/can/arm/lpc2xxx/current: ChangeLog packages/devs/can/arm/lpc2xxx/current/cdl: can_lpc2xxx.cdl packages/devs/can/arm/lpc2xxx/current/include: can_lpc2xxx.h can_lpc2xxx_baudrates.h packages/devs/can/arm/lpc2xxx/current/src: can_accfilt_lpc2xxx.c can_lpc2xxx.c packages/devs/can/arm/lpc2xxx/current/tests: can_extended_cfg.c can_multichan_rx.c can_rx_tx.c Log message: * cdl/can_lpc2xxx.cdl: Added CYGOPT_DEVS_CAN_LPC2XXX_ALIE to make arbitration lost interrupt optional. Added option CYGNUM_DEVS_CAN_LPC2XXX_INT_PRIORITY to configure the interrupt priority for global CAN interrupt in LPC24xx variants. * include/can_lpc2xxx_baudrates.h: Replaced CYGNUM_CAN_LPC2XXX_VPB_CLK by CYGNUM_HAL_ARM_LPC2XXX_CAN_CLK because newer variants like LPC24xx do not have a global VPB_CLK. * src/can_accfilt_lpc2xxx.c: Adjusted LPC2XXX_CAN_FIRST_IN_LUT to be 0 for LPC24xxx variants. Added macro CAN_CHAN_NO_LUT(_info_) to abstract channel numbering from acceptance filter code. * src/can_lpc2xxx.c: Removed icr data field from lpc2xxx_can_info_st structure because it is not required any longer. A lot of small modifications to make the driver usable with newer LPC2xxx variants like LPC24xx. ISR and DSR code changed - instead of disabling interrupts in IER register they are disabled in VIC by using cyg_drv_interrupt_mask() function calls. Added global CAN ISR and DSR for LPC24xx variants (they do not support individual interrupt vectors for RX and TX interrupts). Moved LUT error checking code from ISR into DSR to keep ISR as short as possible and made LUT error checking code optional. * cdl/can_lpc2xxx.cdl: add CAN interrupt priorities * src/can_lpc2xxx.c: add CAN interrupt priorities, repair "chan" definition missing in rx_ISR * src/can_accfilt_lpc2xxx.c: add various types of CAN controllers numbering (depends on LPC2XXX version)