X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cpu%2Farm%2Fdrv%2Fkdebug_at91.c;h=b7e24cd3cc38e7c836543f8aa637f33eaf3635b1;hb=139052d58a99cc47e0e2ac6b897a0c26a0105c2a;hp=a5ec8343e7362a8fd30edd55bb516f4700f1ae41;hpb=3110ae0831fa4ba081c9206663390e21c7a4f78a;p=bertos.git diff --git a/cpu/arm/drv/kdebug_at91.c b/cpu/arm/drv/kdebug_at91.c index a5ec8343..b7e24cd3 100644 --- a/cpu/arm/drv/kdebug_at91.c +++ b/cpu/arm/drv/kdebug_at91.c @@ -76,23 +76,16 @@ INLINE void kdbg_hw_init(void) DBGU_MR = US_CHMODE_NORMAL | US_CHRL_8 | US_PAR_NO | US_NBSTOP_1; /* Enable DBGU transmitter. */ DBGU_CR = BV(US_TXEN); - #if !CPU_ARM_AT91SAM7S256 - #warning Check Debug Unit AT91 pins on datasheet! - #endif /* Disable PIO on DGBU tx pin. */ - PIOA_PDR = BV(10); - PIOA_ASR = BV(10); + PIOA_PDR = BV(DTXD); + PIOA_ASR = BV(DTXD); #if 0 /* Disable Rx for now */ /* Enable DBGU receiver. */ DBGU_CR = BV(US_RXEN); - #if !CPU_ARM_AT91SAM7S256 - #warning Check Debug Unit AT91 pins on datasheet! - #endif /* Disable PIO on DGBU rx pin. */ - PIOA_PDR = BV(9); - PIOA_ASR = BV(9); - + PIOA_PDR = BV(DRXD); + PIOA_ASR = BV(DRXD); #endif #else #error CONFIG_KDEBUG_PORT should be KDEBUG_PORT_DBGU