projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore wrong committ.
[bertos.git]
/
cpu
/
arm
/
drv
/
kdebug_at91.c
diff --git
a/cpu/arm/drv/kdebug_at91.c
b/cpu/arm/drv/kdebug_at91.c
index b7e24cd3cc38e7c836543f8aa637f33eaf3635b1..64b3845f37ea3a07dafec6cf694a3abaf2646939 100644
(file)
--- a/
cpu/arm/drv/kdebug_at91.c
+++ b/
cpu/arm/drv/kdebug_at91.c
@@
-76,16
+76,23
@@
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);
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 && !CPU_ARM_AT91SAM7X256
+ #warning Check Debug Unit AT91 pins on datasheet!
+ #endif
/* Disable PIO on DGBU tx pin. */
/* Disable PIO on DGBU tx pin. */
- PIOA_PDR = BV(
DTXD
);
- PIOA_ASR = BV(
DTXD
);
+ PIOA_PDR = BV(
10
);
+ PIOA_ASR = BV(
10
);
#if 0 /* Disable Rx for now */
/* Enable DBGU receiver. */
DBGU_CR = BV(US_RXEN);
#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. */
/* Disable PIO on DGBU rx pin. */
- PIOA_PDR = BV(DRXD);
- PIOA_ASR = BV(DRXD);
+ PIOA_PDR = BV(9);
+ PIOA_ASR = BV(9);
+
#endif
#else
#error CONFIG_KDEBUG_PORT should be KDEBUG_PORT_DBGU
#endif
#else
#error CONFIG_KDEBUG_PORT should be KDEBUG_PORT_DBGU