sam3n: change flash io defines according to at91 port style: _OFF for offsets and...
[bertos.git] / bertos / cpu / cortex-m3 / io / lm3s_types.h
index eede2c0305784e4df69f88a9b62ede739bc27094..1b8d6f36a7982d82aa772944e2734a2231b4ca8a 100644 (file)
  *
  * -->
  *
- * \brief LM3S1968 generic hardware macros.
+ * \brief LM3S generic hardware macros.
  */
 
 #ifndef LM3S_TYPES_H
 #define LM3S_TYPES_H
 
-/**
- * Macros for hardware access, both direct and via the bit-band region.
- */
-/*\{*/
-#define HWREG(x)                                                              \
-        (*((volatile unsigned long *)(x)))
-#define HWREGH(x)                                                             \
-        (*((volatile unsigned short *)(x)))
-#define HWREGB(x)                                                             \
-        (*((volatile unsigned char *)(x)))
-#define HWREGBITW(x, b)                                                       \
-        HWREG(((unsigned long)(x) & 0xF0000000) | 0x02000000 |                \
-              (((unsigned long)(x) & 0x000FFFFF) << 5) | ((b) << 2))
-#define HWREGBITH(x, b)                                                       \
-        HWREGH(((unsigned long)(x) & 0xF0000000) | 0x02000000 |               \
-               (((unsigned long)(x) & 0x000FFFFF) << 5) | ((b) << 2))
-#define HWREGBITB(x, b)                                                       \
-        HWREGB(((unsigned long)(x) & 0xF0000000) | 0x02000000 |               \
-               (((unsigned long)(x) & 0x000FFFFF) << 5) | ((b) << 2))
-/*\}*/
+#include <cfg/compiler.h>
+#include <cpu/types.h>
 
 /**
  * Helper Macros for determining the particular hardware revision.