X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fkdebug_sam3.c;h=45b2cf59598c1d077b11af362d392b9200c9a1b2;hb=bd20c479c3668f2a6a109aad6059228126964c9b;hp=d2b0cd81b99a1a363708be3dcee0b78a702320a0;hpb=3c19a25efb0e397dff784a40ae94c47858a58eff;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/kdebug_sam3.c b/bertos/cpu/cortex-m3/drv/kdebug_sam3.c index d2b0cd81..45b2cf59 100644 --- a/bertos/cpu/cortex-m3/drv/kdebug_sam3.c +++ b/bertos/cpu/cortex-m3/drv/kdebug_sam3.c @@ -38,6 +38,8 @@ #include #include /* for BV() */ +#include + #include @@ -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);