summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-19 14:45:26 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-19 14:45:26 +0000
commitc79e92ceffd9665632b58a6fb884178a4f4c71a2 (patch)
tree3a9f58cf49adcd4cb4e19f29fa9de73dfd12cb16 /nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c
parent18f9d0eaa3b20a4c3a11c9a3f4e60a150e11d69f (diff)
downloadpx4-nuttx-c79e92ceffd9665632b58a6fb884178a4f4c71a2.tar.gz
px4-nuttx-c79e92ceffd9665632b58a6fb884178a4f4c71a2.tar.bz2
px4-nuttx-c79e92ceffd9665632b58a6fb884178a4f4c71a2.zip
Add workaround for ADC errata from Chris Taglia
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5760 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c')
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c
index 96b66d7a1..151efbd89 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ssp.c
@@ -63,16 +63,24 @@
/****************************************************************************
* Definitions
****************************************************************************/
+/* Configuration ************************************************************/
+/* This driver does not support the SPI exchange method. */
-/* The following enable debug output from this file (needs CONFIG_DEBUG too).
+#ifdef CONFIG_SPI_EXCHANGE
+# error "CONFIG_SPI_EXCHANGE must not be defined in the configuration"
+#endif
+
+/* Debug ********************************************************************/
+/* The following enable debug output from this file:
*
- * CONFIG_SPI_DEBUG - Define to enable basic SSP debug
- * CONFIG_VERBOSE - Define to enable verbose SSP debug
+ * CONFIG_DEBUG - Define to enable general debug features
+ * CONFIG_DEBUG_SPI - Define to enable basic SSP debug (needs CONFIG_DEBUG)
+ * CONFIG_DEBUG_VERBOSE - Define to enable verbose SSP debug
*/
-#ifdef CONFIG_SPI_DEBUG
+#ifdef CONFIG_DEBUG_SPI
# define sspdbg lldbg
-# ifdef CONFIG_VERBOSE
+# ifdef CONFIG_DEBUG_VERBOSE
# define spivdbg lldbg
# else
# define spivdbg(x...)
@@ -82,9 +90,8 @@
# define spivdbg(x...)
#endif
-/* SSP Clocking.
- *
- * The CPU clock by 1, 2, 4, or 8 to get the SSP peripheral clock (SSP_CLOCK).
+/* SSP Clocking *************************************************************/
+/* The CPU clock by 1, 2, 4, or 8 to get the SSP peripheral clock (SSP_CLOCK).
* SSP_CLOCK may be further divided by 2-254 to get the SSP clock. If we
* want a usable range of 4KHz to 25MHz for the SSP, then:
*