s32k1xx: Allow building with debug features and no console.
This commit is contained in:
parent
53dcddc9e3
commit
68db81ab4f
@ -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)
|
void s32k1xx_lowputc(int ch)
|
||||||
{
|
{
|
||||||
while ((getreg32(S32K1XX_CONSOLE_BASE + S32K1XX_LPUART_STAT_OFFSET) &
|
while ((getreg32(S32K1XX_CONSOLE_BASE + S32K1XX_LPUART_STAT_OFFSET) &
|
||||||
|
@ -98,7 +98,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FEATURES
|
#if defined(HAVE_LPUART_CONSOLE) && defined(CONFIG_DEBUG_FEATURES)
|
||||||
# define showprogress(c) s32k1xx_lowputc(c)
|
# define showprogress(c) s32k1xx_lowputc(c)
|
||||||
#else
|
#else
|
||||||
# define showprogress(c)
|
# define showprogress(c)
|
||||||
|
Loading…
Reference in New Issue
Block a user