summaryrefslogtreecommitdiff
path: root/nuttx/examples/hidkbd/hidkbd_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/hidkbd/hidkbd_main.c')
-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