From: asterix Date: Mon, 26 Jul 2010 15:41:14 +0000 (+0000) Subject: Remove unneeded macros. Remove empty header. X-Git-Tag: 2.6.0~288^2~22 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=94d74e8687e7cdede35a8487f9ce0ca18fbcc807;p=bertos.git Remove unneeded macros. Remove empty header. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4073 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/io/cm3_types.h b/bertos/cpu/cortex-m3/io/cm3_types.h deleted file mode 100644 index 967e3f3d..00000000 --- a/bertos/cpu/cortex-m3/io/cm3_types.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * \file - * - * - * \brief Cortex-M3 generic hardware macros. - */ - -#ifndef CM3_TYPES_H -#define CM3_TYPES_H - - -#endif /* CM3_TYPES_H */ diff --git a/bertos/cpu/types.h b/bertos/cpu/types.h index 08772a97..cbef8c41 100644 --- a/bertos/cpu/types.h +++ b/bertos/cpu/types.h @@ -241,16 +241,6 @@ STATIC_ASSERT(sizeof(size_t) == SIZEOF_SIZE_T); #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)) /*\}*/ #endif /* CPU_TYPES_H */