summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-10 22:29:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-10 22:29:39 +0000
commit2878c08369c4ac8819e0f6530784f22509bcab92 (patch)
tree92567fed48fbb8c44552b220ab80d17ec19cfba0 /nuttx/include
parentb45972d006d34d588ef0bde2ebffb2de5843b0fa (diff)
downloadpx4-nuttx-2878c08369c4ac8819e0f6530784f22509bcab92.tar.gz
px4-nuttx-2878c08369c4ac8819e0f6530784f22509bcab92.tar.bz2
px4-nuttx-2878c08369c4ac8819e0f6530784f22509bcab92.zip
Fix LPC17 CAN driver; TX must be interrupt driven
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4290 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/can.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/can.h b/nuttx/include/nuttx/can.h
index 3f77afc7a..ba060cf5e 100644
--- a/nuttx/include/nuttx/can.h
+++ b/nuttx/include/nuttx/can.h
@@ -1,7 +1,7 @@
/************************************************************************************
* include/nuttx/can.h
*
- * Copyright (C) 2008, 2009, 2011 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008, 2009, 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -84,6 +84,7 @@
#define dev_ioctl(dev,cmd,arg) dev->cd_ops->co_ioctl(dev,cmd,arg)
#define dev_remoterequest(dev,id) dev->cd_ops->co_remoterequest(dev,id)
#define dev_send(dev,m) dev->cd_ops->co_send(dev,m)
+#define dev_txready(dev) dev->cd_ops->co_txready(dev)
#define dev_txempty(dev) dev->cd_ops->co_txempty(dev)
/* CAN message support */
@@ -205,6 +206,10 @@ struct can_ops_s
CODE int (*co_send)(FAR struct can_dev_s *dev, FAR struct can_msg_s *msg);
+ /* Return true if the CAN hardware can accept another TX message. */
+
+ CODE bool (*co_txready)(FAR struct can_dev_s *dev);
+
/* Return true if all message have been sent. If for example, the CAN
* hardware implements FIFOs, then this would mean the transmit FIFO is
* empty. This method is called when the driver needs to make sure that