From 180a8bf8f6d53c826d94e8d6d808b7c937aeb920 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 1 Nov 2014 06:51:14 -0600 Subject: [PATCH] EFTM32 ITM: Add missing ~ in bit clear operation. From pn_bouteville@yahoo.fr --- arch/arm/src/efm32/efm32_clockconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/efm32/efm32_clockconfig.c b/arch/arm/src/efm32/efm32_clockconfig.c index d7f3631407..014642939f 100644 --- a/arch/arm/src/efm32/efm32_clockconfig.c +++ b/arch/arm/src/efm32/efm32_clockconfig.c @@ -875,7 +875,7 @@ static inline void efm32_itm_syslog(void) */ regval = getreg32(EFM32_GPIO_ROUTE); - regval &= _GPIO_ROUTE_SWLOCATION_MASK; + regval &= ~_GPIO_ROUTE_SWLOCATION_MASK; regval |= GPIO_ROUTE_SWOPEN; regval |= ((uint32_t)BOARD_SWOPORT_LOCATION << _GPIO_ROUTE_SWLOCATION_SHIFT); putreg32(regval, EFM32_GPIO_ROUTE);