From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4172 invoked by alias); 18 Sep 2013 16:02:00 -0000 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: Received: (qmail 4155 invoked by uid 9841); 18 Sep 2013 16:02:00 -0000 Message-ID: <20130918160200.4152.qmail@sourceware.org> From: sergeig@sourceware.org Date: Wed, 18 Sep 2013 16:02:00 -0000 To: ecos-cvs@ecos.sourceware.org Subject: ecos/packages/devs/can/arm/lpc2xxx/current Cha ... User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2013/txt/msg00117.txt.bz2 CVSROOT: /cvs/ecos Module name: ecos Changes by: sergeig@sourceware.org 2013-09-18 16:02:00 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/src: can_lpc2xxx.c Log message: * cdl/can_lpc2xxx.cdl: Add CYGHWR_DEVS_CAN_LPC2XXX_BUSOFF_WORKAROUND to enable conditional Bus-Off reset mode workaround. [Bug 1001897] * src/can_lpc2xxx.c: Add function lpc2xxx_reset_error_counters to reset TX and RX error counters to certain values. Function lpc2xxx_start_module now clears both error counters. Add some LPC2XXX_DBG_PRINT statements to lpc2xxx_can_getevent function. Add function lpc2xxx_print_status to ease printing status register content. If a bus error condition occures (ICR_BUS_ERR) the function lpc2xxx_can_getevent now clears the error counters to prevent error ISR from blocking application and to support recovery from bus off condition if option CYGHWR_DEVS_CAN_LPC2XXX_BUSOFF_WORKAROUND is enabled.