From b9dcedf28950bcec3c7bf55cd5c699ead6fd6007 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 27 Feb 2017 11:15:44 -1000 Subject: [PATCH] Kinetis:Fixed unused warning --- arch/arm/src/kinetis/kinetis_lowputc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/kinetis/kinetis_lowputc.c b/arch/arm/src/kinetis/kinetis_lowputc.c index b22a63de0b..31bb32f697 100644 --- a/arch/arm/src/kinetis/kinetis_lowputc.c +++ b/arch/arm/src/kinetis/kinetis_lowputc.c @@ -222,8 +222,10 @@ void up_lowputc(char ch) void kinetis_lowsetup(void) { -#ifdef HAVE_UART_DEVICE +#if defined(HAVE_UART_DEVICE) ||defined(HAVE_LUART_DEVICE) uint32_t regval; +#endif +#ifdef HAVE_UART_DEVICE /* Enable peripheral clocking for all enabled UARTs. Clocking for UARTs * 0-3 is enabled in the SCGC4 register.