summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Aberg <maberg@gaisler.com>2017-04-13 14:06:04 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2017-05-14 12:31:59 +0200
commitee078c217ddb67af7456bfc32afae55573bdec41 (patch)
treef9d8ce899157a333080fc7fceac5473278437234
parentleon, grcan: semaphore reset count required after flushing (diff)
downloadrtems-ee078c217ddb67af7456bfc32afae55573bdec41.tar.bz2
leon, grcan: fixed historical comment
-rw-r--r--c/src/lib/libbsp/sparc/shared/can/grcan.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c
index ac1c71849a..b1eacc01bd 100644
--- a/c/src/lib/libbsp/sparc/shared/can/grcan.c
+++ b/c/src/lib/libbsp/sparc/shared/can/grcan.c
@@ -979,12 +979,11 @@ static int grcan_wait_rxdata(struct grcan_priv *pDev, int min)
return 0;
}
-/* Wait until min bytes available in TX circular buffer. TXIRQ is used to pin
+/* Wait for TX circular buffer to have room for min CAN messagges. TXIRQ is used to pin
* point the location of the CAN message corresponding to min.
*
- * min must be at least WRAP_AROUND_TX_BYTES bytes less
- * than max buffer for this algo to work.
- *
+ * min must be at least WRAP_AROUND_TX_MSGS less than max buffer capacity
+ * (pDev->txbuf_size/GRCAN_MSG_SIZE) for this algo to work.
*/
static int grcan_wait_txspace(struct grcan_priv *pDev, int min)
{