forked from Imagelibrary/rtems
leon, grcan: removed unused txerror, rxerror
This commit is contained in:
committed by
Daniel Hellstrom
parent
ee078c217d
commit
039edd2adc
@@ -149,7 +149,6 @@ struct grcan_priv {
|
|||||||
|
|
||||||
int txblock, rxblock;
|
int txblock, rxblock;
|
||||||
int txcomplete, rxcomplete;
|
int txcomplete, rxcomplete;
|
||||||
int txerror, rxerror;
|
|
||||||
|
|
||||||
struct grcan_filter sfilter;
|
struct grcan_filter sfilter;
|
||||||
struct grcan_filter afilter;
|
struct grcan_filter afilter;
|
||||||
@@ -458,10 +457,6 @@ static rtems_device_driver grcan_hw_start(struct grcan_priv *pDev)
|
|||||||
IRQ_UNMASK(pDev->irq + GRCAN_IRQ_IRQ);
|
IRQ_UNMASK(pDev->irq + GRCAN_IRQ_IRQ);
|
||||||
SPIN_UNLOCK_IRQ(&pDev->devlock, oldLevel);
|
SPIN_UNLOCK_IRQ(&pDev->devlock, oldLevel);
|
||||||
|
|
||||||
/* Reset some software data */
|
|
||||||
/*pDev->txerror = 0;
|
|
||||||
pDev->rxerror = 0; */
|
|
||||||
|
|
||||||
/* Enable receiver/transmitter */
|
/* Enable receiver/transmitter */
|
||||||
pDev->regs->rx0ctrl = GRCAN_RXCTRL_ENABLE;
|
pDev->regs->rx0ctrl = GRCAN_RXCTRL_ENABLE;
|
||||||
pDev->regs->tx0ctrl = GRCAN_TXCTRL_ENABLE;
|
pDev->regs->tx0ctrl = GRCAN_TXCTRL_ENABLE;
|
||||||
@@ -1519,14 +1514,6 @@ int grcan_write(void *d, CANMsg *msg, size_t ucount)
|
|||||||
return nwritten;
|
return nwritten;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pDev->txerror ){
|
|
||||||
/* Return number of bytes sent, compare write pointers */
|
|
||||||
pDev->txerror = 0;
|
|
||||||
#if 0
|
|
||||||
#error HANDLE AMBA error
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Try read bytes from circular buffer */
|
/* Try read bytes from circular buffer */
|
||||||
nwritten = grcan_hw_write_try(
|
nwritten = grcan_hw_write_try(
|
||||||
pDev,
|
pDev,
|
||||||
|
|||||||
Reference in New Issue
Block a user