summaryrefslogtreecommitdiff
path: root/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-12-10 09:10:39 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-12-10 09:10:39 -0600
commit9659fbf283b989302489020a9af23e31c7ba98b9 (patch)
tree1c65807a7768cea3a9e92ea6ce77bf2c13ef9791 /nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
parent0172a2c80241f4ab10760565a838dcba63d4fdff (diff)
downloadpx4-nuttx-9659fbf283b989302489020a9af23e31c7ba98b9.tar.gz
px4-nuttx-9659fbf283b989302489020a9af23e31c7ba98b9.tar.bz2
px4-nuttx-9659fbf283b989302489020a9af23e31c7ba98b9.zip
More OV2640 initialization logic
Diffstat (limited to 'nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h')
-rw-r--r--nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
index 57d27ef4c..3273c3b25 100644
--- a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
+++ b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
@@ -63,6 +63,7 @@
#define HAVE_USBDEV 1
#define HAVE_USBMONITOR 1
#define HAVE_NETWORK 1
+#define HAVE_CAMERA 1
/* HSMCI */
/* Can't support MMC/SD if the card interface(s) are not enable */
@@ -317,6 +318,24 @@
# undef HAVE_NETWORK
#endif
+/* Camera */
+
+#define OV2640_BUS 1
+
+#ifndef CONFIG_SAMA5_OV2640_DEMO
+# undef HAVE_CAMERA
+#endif
+
+#if defined(HAVE_CAMERA) && !defined(CONFIG_SAMA5_ISI)
+# warning OV2640 camera demo requires CONFIG_SAMA5_ISI
+# undef HAVE_CAMERA
+#endif
+
+#if defined(HAVE_CAMERA) && !defined(CONFIG_SAMA5_TWI1)
+# warning OV2640 camera demo requires CONFIG_SAMA5_TWI1
+# undef HAVE_CAMERA
+#endif
+
/* LEDs *****************************************************************************/
/* There are two LEDs on the SAMA5D3 series-CM board that can be controlled
* by software. A blue LED is controlled via PIO pins. A red LED normally