summaryrefslogtreecommitdiff
path: root/nuttx/examples
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-16 14:02:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-16 14:02:42 +0000
commitb7145b509d269f4a5ffcecad9a969c6a0a480f20 (patch)
tree035ba62000a7edb601c2a7b5243176dd8228c096 /nuttx/examples
parent979c0410e02cb6217fdc87bff44d17c3182ed1d7 (diff)
downloadpx4-nuttx-b7145b509d269f4a5ffcecad9a969c6a0a480f20.tar.gz
px4-nuttx-b7145b509d269f4a5ffcecad9a969c6a0a480f20.tar.bz2
px4-nuttx-b7145b509d269f4a5ffcecad9a969c6a0a480f20.zip
Make space for int/isoc endpoint support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3254 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r--nuttx/examples/hidkbd/hidkbd_main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/nuttx/examples/hidkbd/hidkbd_main.c b/nuttx/examples/hidkbd/hidkbd_main.c
index edcdcf375..8a98afd51 100644
--- a/nuttx/examples/hidkbd/hidkbd_main.c
+++ b/nuttx/examples/hidkbd/hidkbd_main.c
@@ -48,6 +48,23 @@
/****************************************************************************
* Definitions
****************************************************************************/
+/* Configuration ************************************************************/
+
+/* Sanity checking */
+
+#ifndef CONFIG_USBHOST
+# error "CONFIG_USBHOST is not defined"
+#endif
+
+#ifdef CONFIG_USBHOST_INT_DISABLE
+# error "Interrupt endpoints are disabled (CONFIG_USBHOST_INT_DISABLE)"
+#endif
+
+#ifndef CONFIG_NFILE_DESCRIPTORS
+# error "CONFIG_NFILE_DESCRIPTORS > 0 needed"
+#endif
+
+/* Provide some default values for other configuration settings */
#ifndef CONFIG_EXAMPLES_HIDKBD_DEFPRIO
# define CONFIG_EXAMPLES_HIDKBD_DEFPRIO 50