[rtems commit] leon, grcan: fixed historical comment
Daniel Hellstrom
danielh at rtems.org
Sun May 14 10:34:28 UTC 2017
Module: rtems
Branch: master
Commit: ee078c217ddb67af7456bfc32afae55573bdec41
Changeset: http://git.rtems.org/rtems/commit/?id=ee078c217ddb67af7456bfc32afae55573bdec41
Author: Martin Aberg <maberg at gaisler.com>
Date: Thu Apr 13 14:06:04 2017 +0200
leon, grcan: fixed historical comment
---
c/src/lib/libbsp/sparc/shared/can/grcan.c | 7 +++----
1 file 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 ac1c718..b1eacc0 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)
{
More information about the vc
mailing list