summaryrefslogtreecommitdiff
path: root/nuttx/drivers/sensors
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-15 17:51:30 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-15 17:51:30 +0000
commit8b265a45d9b5d840b563321941c632bd3b2c3963 (patch)
tree35172ca6e0c8bc762e6ee6588589e6ef2a5d350d /nuttx/drivers/sensors
parent9f4ec53da93776bfcf221a699317c59a13782d7e (diff)
downloadpx4-nuttx-8b265a45d9b5d840b563321941c632bd3b2c3963.tar.gz
px4-nuttx-8b265a45d9b5d840b563321941c632bd3b2c3963.tar.bz2
px4-nuttx-8b265a45d9b5d840b563321941c632bd3b2c3963.zip
Add QE support to STM32F4Discovery; add a test of the quadrature encoder driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4395 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/sensors')
-rw-r--r--nuttx/drivers/sensors/qencoder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/drivers/sensors/qencoder.c b/nuttx/drivers/sensors/qencoder.c
index edbe8255c..84bc15813 100644
--- a/nuttx/drivers/sensors/qencoder.c
+++ b/nuttx/drivers/sensors/qencoder.c
@@ -365,7 +365,13 @@ static int qe_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
* lower - An instance of the lower half interface
*
* Returned Value:
- * Zero (OK) on success; a negated errno value on failure.
+ * Zero (OK) on success; a negated errno value on failure. The following
+ * possible error values may be returned (most are returned by
+ * register_driver()):
+ *
+ * EINVAL - 'path' is invalid for this operation
+ * EEXIST - An inode already exists at 'path'
+ * ENOMEM - Failed to allocate in-memory resources for the operation
*
****************************************************************************/