provide linux-style readl()/writel() in reg.h
This commit is contained in:
committed by
Travis Geiselbrecht
parent
7d7380c460
commit
9c19412187
@@ -31,4 +31,7 @@
|
||||
#define REG16(addr) ((volatile uint16_t *)(addr))
|
||||
#define REG8(addr) ((volatile uint8_t *)(addr))
|
||||
|
||||
#define writel(v, a) (*REG32(a) = (v))
|
||||
#define readl(a) (*REG32(a))
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user