From 68db81ab4fa66c304a7e5db4707fc86b01a422c8 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Fri, 30 Sep 2022 10:50:45 +0200 Subject: [PATCH] s32k1xx: Allow building with debug features and no console. --- arch/arm/src/s32k1xx/s32k1xx_lowputc.c | 2 +- arch/arm/src/s32k1xx/s32k1xx_start.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/s32k1xx/s32k1xx_lowputc.c b/arch/arm/src/s32k1xx/s32k1xx_lowputc.c index 72407330b1..accfa5aa8f 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_lowputc.c +++ b/arch/arm/src/s32k1xx/s32k1xx_lowputc.c @@ -385,7 +385,7 @@ int s32k1xx_lpuart_configure(uint32_t base, * ****************************************************************************/ -#if defined(HAVE_LPUART_DEVICE) && defined(CONFIG_DEBUG_FEATURES) +#if defined(HAVE_LPUART_CONSOLE) && defined(CONFIG_DEBUG_FEATURES) void s32k1xx_lowputc(int ch) { while ((getreg32(S32K1XX_CONSOLE_BASE + S32K1XX_LPUART_STAT_OFFSET) & diff --git a/arch/arm/src/s32k1xx/s32k1xx_start.c b/arch/arm/src/s32k1xx/s32k1xx_start.c index 1189a3013a..bbf1aaac5a 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_start.c +++ b/arch/arm/src/s32k1xx/s32k1xx_start.c @@ -98,7 +98,7 @@ * ****************************************************************************/ -#ifdef CONFIG_DEBUG_FEATURES +#if defined(HAVE_LPUART_CONSOLE) && defined(CONFIG_DEBUG_FEATURES) # define showprogress(c) s32k1xx_lowputc(c) #else # define showprogress(c)