diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-06 20:19:44 -0400 |
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-06 20:19:44 -0400 |
| commit | a00029e1325393d779bd5294efc86a990ba0521b (patch) | |
| tree | 8bcf39c3c32905f6aaf64e4b7199c1edd1c7f752 /libmaple | |
| parent | 6a3f977d85127f9a10e091c7becba161cfb2d509 (diff) | |
Finally getting rid of __read() and __write().
This brings util.h down to some bit manipulation macros, failure
routines, and asserts.
Diffstat (limited to 'libmaple')
| -rw-r--r-- | libmaple/util.h | 9 |
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 */ |
