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. */
- 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
/*\}*/
/**
- * USART pins name
+ * USART & DEBUG pin names
*\{
*/
#if CPU_ARM_AT91SAM7S256
#define TXD0 6
#define RXD1 21
#define TXD1 22
-
+ #define DTXD 10
+ #define DRXD 9
#elif CPU_ARM_AT91SAM7X256
- #define RXD0 0 // PA0
- #define TXD0 1 // PA1
- #define RXD1 5 // PA5
- #define TXD1 6 // PA6
-
+ #define RXD0 0 // PA0
+ #define TXD0 1 // PA1
+ #define RXD1 5 // PA5
+ #define TXD1 6 // PA6
+ #define DTXD 28 // PA28
+ #define DRXD 27 // PA27
#else
- #error No USART pins name definition for selected ARM CPU
-
+ #error No USART & debug pin names definition for selected ARM CPU
#endif
/*\}*/