Fix tx interrupt in init. Enable tx and rx interrupt in _enableirq function. Add...
[bertos.git] / cpu / arm / io / at91sam7s256.h
index e59733b5b6c555553dea0b8c6535445e0cb1009e..827f72da96aee79a78e24eb9bc8dc005d5d28fa1 100644 (file)
 #define PIO_HAS_PERIPHERALSELECT   1
 #define PIO_HAS_OUTPUTWRITEENABLE  1
 
+#define DBGU_HAS_PDC               1
+#define SPI_HAS_PDC                1
+#define SSC_HAS_PDC                1
+#define USART_HAS_PDC              1
+
 #include "at91_aic.h"
 #include "at91_pit.h"
 #include "at91_pmc.h"
 #include "at91_wdt.h"
 #include "at91_rstc.h"
 #include "at91_pio.h"
+#include "at91_us.h"
+#include "at91_dbgu.h"
 //TODO: add other peripherals
 
 /** Peripheral Identifiers and Interrupts */
 #define PDC_TXTEN       0x00000100      ///< Transmitter transfer enable.
 #define PDC_TXTDIS      0x00000200      ///< Transmitter transfer disable.
 
-#define DBGU_HAS_PDC               1
-#define SPI_HAS_PDC                1
-#define SSC_HAS_PDC                1
-#define USART_HAS_PDC              1
-
 /** Historical SPI0 Peripheral Multiplexing Names */
 /*\{*/
 #define SPI0_NPCS0_PA12A       12      ///< Port bit number on PIO-A Perpheral A.