X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Flm3s_types.h;h=ab1a822b0ef1847a179e5429faaa76a43e841cdb;hb=9f6449b9229aa4bf2f4085df5e7fe44e16c57183;hp=9bba5ff3a137935a4cc438baef5feeac3ab4b173;hpb=73a7e9cb144007905b5b9de8e3086423e79b6d71;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/lm3s_types.h b/bertos/cpu/cortex-m3/io/lm3s_types.h index 9bba5ff3..ab1a822b 100644 --- a/bertos/cpu/cortex-m3/io/lm3s_types.h +++ b/bertos/cpu/cortex-m3/io/lm3s_types.h @@ -45,6 +45,7 @@ #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))