Mercurial > ecos
view examples/hello.c @ 3271:4baa86091c2c
* 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.
| author | sergeig |
|---|---|
| date | Wed, 18 Sep 2013 16:01:59 +0000 |
| parents | ead06911cbae |
| children |
line wrap: on
line source
/* this is a simple hello world program */ #include <stdio.h> int main(void) { printf("Hello, eCos world!\n"); return 0; }
