From: aleph Date: Tue, 5 Oct 2010 16:44:05 +0000 (+0000) Subject: sam3n kdebug: fix bug, enable correctly UART PMC. X-Git-Tag: 2.6.0~5^2~109 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b4906f05440160a6735cffd536142af906641b66;p=bertos.git sam3n kdebug: fix bug, enable correctly UART PMC. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4411 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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;