summaryrefslogtreecommitdiff
path: root/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-04 14:54:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-04 14:54:20 -0600
commit5f1df4c6ab651700bfd8c6b6698b90b9586b4847 (patch)
tree299a9c7fba11d5db21f88530ad7fe56d7e7b52b0 /nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
parent8d3f3c9fbf532d1e3ee63f35c2dfd1e7f26a3a14 (diff)
downloadpx4-nuttx-5f1df4c6ab651700bfd8c6b6698b90b9586b4847.tar.gz
px4-nuttx-5f1df4c6ab651700bfd8c6b6698b90b9586b4847.tar.bz2
px4-nuttx-5f1df4c6ab651700bfd8c6b6698b90b9586b4847.zip
Correct the WM8904 interrupt configuration, active high level. Fix that and don't pull-up
Diffstat (limited to 'nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h')
-rw-r--r--nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
index 8bf647d36..d340643af 100644
--- a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
+++ b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h
@@ -337,6 +337,11 @@
# undef HAVE_WM8904
# endif
+# if !defined(CONFIG_SAMA5_PIOD_IRQ)
+# warning CONFIG_SAMA5_PIOD_IRQ is required for audio support
+# undef HAVE_HSMCI
+# endif
+
# ifndef CONFIG_AUDIO_FORMAT_PCM
# warning CONFIG_AUDIO_FORMAT_PCM is required for audio support
# undef HAVE_WM8904
@@ -603,10 +608,13 @@
* ------------- ---------------- -----------------
*/
-/* Audio Interrupt */
+/* Audio Interrupt. All interrupts are default, active high level. Pull down
+ * internally in the WM8904. So we want no pull-up/downs and we want to
+ * interrupt on the high level.
+ */
-#define PIO_INT_WM8904 (PIO_INPUT | PIO_CFG_PULLUP | PIO_CFG_DEGLITCH | \
- PIO_INT_BOTHEDGES | PIO_PORT_PIOD | PIO_PIN16)
+#define PIO_INT_WM8904 (PIO_INPUT | PIO_CFG_DEFAULT | PIO_CFG_DEGLITCH | \
+ PIO_INT_HIGHLEVEL | PIO_PORT_PIOD | PIO_PIN16)
#define IRQ_INT_WM8904 SAM_IRQ_PD16
/* The MW8904 communicates on TWI0, I2C address 0x1a for control operations */