aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--encoding.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/encoding.h b/encoding.h
index e6478b2..e9006b9 100644
--- a/encoding.h
+++ b/encoding.h
@@ -127,13 +127,14 @@
#define PMP_R 0x01
#define PMP_W 0x02
#define PMP_X 0x04
-#define PMP_M 0x08
-#define PMP_NAPOT 0x10
-#define PMP_TOR 0x20
-#define PMP_EN 0x40
-#define PMP_LOCK 0x80
+#define PMP_A 0x18
+#define PMP_L 0x80
#define PMP_SHIFT 2
+#define PMP_TOR 0x08
+#define PMP_NA4 0x10
+#define PMP_NAPOT 0x18
+
#define IRQ_S_SOFT 1
#define IRQ_H_SOFT 2
#define IRQ_M_SOFT 3