aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/util.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/libmaple/util.h b/libmaple/util.h
index 4c47764..f54f3fd 100644
--- a/libmaple/util.h
+++ b/libmaple/util.h
@@ -42,18 +42,11 @@ extern "C"{
#define BIT(shift) (1UL << (shift))
#define BIT_MASK_SHIFT(mask, shift) ((mask) << (shift))
-/* Bits m to n of x */
+/** Bits m to n of x */
#define GET_BITS(x, m, n) ((((uint32)x) << (31 - (n))) >> ((31 - (n)) + (m)))
#define IS_POWER_OF_TWO(v) (v && !(v & (v - 1)))
/*
- * Register reads and writes
- */
-
-#define __read(reg) (*(__io uint32*)(reg))
-#define __write(reg, value) (*(__io uint32*)(reg) = (value))
-
-/*
* Failure routines
*/