X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Flm3s_types.h;h=b88347b44abd93390bcda8fdf62f85dbdbfb1c1c;hb=f7f68ef253b16438a1676ab594e8f53f51dfe418;hp=ab1a822b0ef1847a179e5429faaa76a43e841cdb;hpb=77958b8e9d27594aa22e76132b4bbb8d0335bfc2;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/lm3s_types.h b/bertos/cpu/cortex-m3/io/lm3s_types.h index ab1a822b..b88347b4 100644 --- a/bertos/cpu/cortex-m3/io/lm3s_types.h +++ b/bertos/cpu/cortex-m3/io/lm3s_types.h @@ -30,32 +30,14 @@ * * --> * - * \brief LM3S1968 generic hardware macros. + * \brief LM3S generic hardware macros. */ #ifndef LM3S_TYPES_H #define LM3S_TYPES_H #include - -/** - * Macros for hardware access, both direct and via the bit-band region. - */ -/*\{*/ -#define HWREG(x) (*((reg32_t *)(x))) -#define HWREGH(x) (*((reg16_t *)(x))) -#define HWREGB(x) (*((reg8_t *)(x))) - -#define HWREGBITW(x, b) \ - HWREG(((reg32_t)(x) & 0xF0000000) | 0x02000000 | \ - (((reg32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)) -#define HWREGBITH(x, b) \ - HWREGH(((reg32_t)(x) & 0xF0000000) | 0x02000000 | \ - (((reg32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)) -#define HWREGBITB(x, b) \ - HWREGB(((reg32_t)(x) & 0xF0000000) | 0x02000000 | \ - (((reg32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2)) -/*\}*/ +#include /** * Helper Macros for determining the particular hardware revision.