From b4906f05440160a6735cffd536142af906641b66 Mon Sep 17 00:00:00 2001 From: aleph Date: Tue, 5 Oct 2010 16:44:05 +0000 Subject: [PATCH] sam3n kdebug: fix bug, enable correctly UART PMC. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4411 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/kdebug_sam3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/cpu/cortex-m3/drv/kdebug_sam3.c b/bertos/cpu/cortex-m3/drv/kdebug_sam3.c index e3472395..ac062e46 100644 --- a/bertos/cpu/cortex-m3/drv/kdebug_sam3.c +++ b/bertos/cpu/cortex-m3/drv/kdebug_sam3.c @@ -81,7 +81,7 @@ INLINE void kdbg_hw_init(void) HWREG(UART_GPIO_BASE + GPIO_ABCDSR2) &= ~UART_PINS; /* Enable the peripheral clock */ - PMC_PCER_R = UART_INT; + PMC_PCER_R |= BV(UART_INT); /* Reset and disable receiver & transmitter */ HWREG(UART_BASE + UART_CR) = UART_CR_RSTRX | UART_CR_RSTTX | UART_CR_RXDIS | UART_CR_TXDIS; -- 2.25.1