mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2007-09-19 Daniel Hellstrom <daniel@gaisler.com>
* shared/can/occan.c: Fix Reenable command and fix typo.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2007-09-19 Daniel Hellstrom <daniel@gaisler.com>
|
||||
|
||||
* shared/can/occan.c: Fix Reenable command and fix typo.
|
||||
|
||||
2007-09-18 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* shared/1553/b1553brm.c, shared/can/grcan.c: Remove include of sched.h
|
||||
|
||||
@@ -1625,7 +1625,7 @@ static void occan_interrupt(occan_priv *can){
|
||||
}
|
||||
|
||||
/* Re-Enable RX buffer for a new message */
|
||||
regs->cmd = READ_REG(®s->cmd) | PELICAN_CMD_RELRXBUF;
|
||||
regs->cmd = PELICAN_CMD_RELRXBUF;
|
||||
|
||||
/* make message available to the user */
|
||||
occan_fifo_put(can->rxfifo);
|
||||
@@ -1726,7 +1726,7 @@ static void occan_interrupt(occan_priv *can){
|
||||
tx_error_cnt = READ_REG(®s->tx_err_cnt);
|
||||
rx_error_cnt = READ_REG(®s->rx_err_cnt);
|
||||
|
||||
if ( (tx_error_cnt > 127) || (tx_error_cnt > 127) ){
|
||||
if ( (tx_error_cnt > 127) || (rx_error_cnt > 127) ){
|
||||
can->status |= OCCAN_STATUS_ERR_PASSIVE;
|
||||
}else{
|
||||
can->status &= ~(OCCAN_STATUS_ERR_PASSIVE);
|
||||
|
||||
Reference in New Issue
Block a user