projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CM3: kernel preemption.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
io
/
lm3s_types.h
diff --git
a/bertos/cpu/cortex-m3/io/lm3s_types.h
b/bertos/cpu/cortex-m3/io/lm3s_types.h
index 9bba5ff3a137935a4cc438baef5feeac3ab4b173..ab1a822b0ef1847a179e5429faaa76a43e841cdb 100644
(file)
--- 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))