aboutsummaryrefslogtreecommitdiff
path: root/apps/examples/qencoder/qe.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-30 16:51:43 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-30 16:51:43 +0000
commitcb77f5961df901626b4f4cb3e1d5672f6a94b5f3 (patch)
tree41f9e4861aa9914bbcf36241710b609ce1681ba1 /apps/examples/qencoder/qe.h
parenta4f9a7805d2ed730798b4da73d3513258f393908 (diff)
downloadpx4-firmware-cb77f5961df901626b4f4cb3e1d5672f6a94b5f3.tar.gz
px4-firmware-cb77f5961df901626b4f4cb3e1d5672f6a94b5f3.tar.bz2
px4-firmware-cb77f5961df901626b4f4cb3e1d5672f6a94b5f3.zip
Add support for testing multiple ADC, PWM, and QE devices
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4993 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/examples/qencoder/qe.h')
-rw-r--r--apps/examples/qencoder/qe.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/examples/qencoder/qe.h b/apps/examples/qencoder/qe.h
index 1571da7b2..4c03689ab 100644
--- a/apps/examples/qencoder/qe.h
+++ b/apps/examples/qencoder/qe.h
@@ -100,9 +100,11 @@
#ifdef CONFIG_NSH_BUILTIN_APPS
struct qe_example_s
{
- bool reset; /* True: set the count back to zero */
- unsigned int nloops; /* Collect this number of samples */
- unsigned int delay; /* Delay this number of seconds between samples */
+ bool initialized; /* True: QE devices have been initialized */
+ bool reset; /* True: set the count back to zero */
+ FAR char *devpath; /* Path to the QE device */
+ unsigned int nloops; /* Collect this number of samples */
+ unsigned int delay; /* Delay this number of seconds between samples */
};
#endif