summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/arch/z16/src/common/up_initialize.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/z16/src/common/up_initialize.c b/nuttx/arch/z16/src/common/up_initialize.c
index b7fc643d2..0a6a220f8 100644
--- a/nuttx/arch/z16/src/common/up_initialize.c
+++ b/nuttx/arch/z16/src/common/up_initialize.c
@@ -53,7 +53,10 @@
* Definitions
****************************************************************************/
-/* Define to enable timing loop calibration */
+/* Define to enable timing loop calibration. CONFIG_DEBUG and
+ * CONFIG_ARCH_LOWPUTC must also be enabled in the .config file because
+ * the logic uses lldbg()
+ */
#undef CONFIG_ARCH_CALIBRATION
@@ -90,7 +93,7 @@ FAR chipreg_t *current_regs;
*
****************************************************************************/
-#if defined(CONFIG_ARCH_CALIBRATION) & defined(CONFIG_DEBUG)
+#if defined(CONFIG_ARCH_CALIBRATION) & defined(CONFIG_DEBUG) && defined(CONFIG_ARCH_LOWPUTC)
static void up_calibratedelay(void)
{
int i;