Implement the dac streaming api.
[bertos.git] / bertos / cpu / cortex-m3 / drv / kdebug_sam3.c
index d2b0cd81b99a1a363708be3dcee0b78a702320a0..45b2cf59598c1d077b11af362d392b9200c9a1b2 100644 (file)
@@ -38,6 +38,8 @@
 #include <cfg/cfg_debug.h>
 #include <cfg/macros.h> /* for BV() */
 
+#include <cpu/types.h>
+
 #include <io/sam3.h>
 
 
@@ -82,7 +84,7 @@ INLINE void kdbg_hw_init(void)
        PIO_PERIPH_SEL(UART_PIO_BASE, UART_PINS, UART_PERIPH);
 
        /* Enable the peripheral clock */
-       PMC_PCER = BV(UART_ID);
+       pmc_periphEnable(UART_ID);
 
        /* Reset and disable receiver & transmitter */
        HWREG(UART_BASE + UART_CR_OFF) = BV(UART_CR_RSTRX) | BV(UART_CR_RSTTX) | BV(UART_CR_RXDIS) | BV(UART_CR_TXDIS);