Fix tx interrupt in init. Enable tx and rx interrupt in _enableirq function. Add...
[bertos.git] / cpu / arm / io / at91sam7s256.h
index 6c22208e44922d912860f22dee52299f5edf7083..827f72da96aee79a78e24eb9bc8dc005d5d28fa1 100644 (file)
  * For additional information see http://www.ethernut.de/
  */
 
-#ifndef AT91SAM7S_H
-#define AT91SAM7S_H
+#ifndef AT91SAM7S256_H
+#define AT91SAM7S256_H
+
+#include <cfg/compiler.h>
 
 #define FLASH_BASE      0x100000UL
 #define RAM_BASE        0x200000UL
 #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.
 #define PB30_PWM3_B         30
 /*\}*/
 
-#endif /* AT91SAM7S_H */
+#endif /* AT91SAM7S256_H */