From 2fb6ae5ee75879435c31deff1cd4864b14febd15 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 16 Mar 2021 17:03:10 +0800 Subject: [PATCH] debugging i2c --- emulation/renode.svd | 38 ++++++++++++++++++++++++++++---------- kernel/Cargo.toml | 4 ++-- svd2utra/examples/soc.svd | 38 ++++++++++++++++++++++++++++---------- 3 files changed, 58 insertions(+), 22 deletions(-) diff --git a/emulation/renode.svd b/emulation/renode.svd index 40cf6f1a9..4781c6264 100644 --- a/emulation/renode.svd +++ b/emulation/renode.svd @@ -1362,7 +1362,7 @@ beyond the tag indicated in `MAJOR`, `MINOR`, and `REVISION`.]]> GIT_DIRTY 0x001c - 0x00 + 0x01 32 @@ -1957,8 +1957,7 @@ upon the completion of one byte of data transfer.]]> EV_STATUS - + 0x0018 0x00 32 @@ -1970,12 +1969,18 @@ Writes to this register have no effect.]]> 0 + + txrx_done + 1 + [1:1] + 1 + + EV_PENDING - + 0x001c 0x00 32 @@ -1985,14 +1990,20 @@ register. To clear the Event, set the corresponding bit in this register.]]>0 [0:0] 0 - + + + + txrx_done + 1 + [1:1] + 1 + EV_ENABLE - + 0x0020 0x00 32 @@ -2004,6 +2015,13 @@ register to disable individual events.]]> 0 + + txrx_done + 1 + [1:1] + 1 + + @@ -3038,7 +3056,7 @@ again until the interrupt is serviced.]]> SEED1 0x0000 - 0x48f7dee1 + 0x508efbe6 32 @@ -3053,7 +3071,7 @@ again until the interrupt is serviced.]]> SEED0 0x0004 - 0xc2db130 + 0x1f1cd099 32 diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index 4ffce8b58..48c4a326b 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -21,8 +21,8 @@ riscv = "0.5.6" debug-print = [] print-panics = [] report-memory = ["stats_alloc"] -#default = ["print-panics", "debug-print"] -default = ["print-panics"] +default = ["print-panics", "debug-print"] +#default = ["print-panics"] [target.'cfg(any(windows, unix))'.dependencies] lazy_static = "1.4" diff --git a/svd2utra/examples/soc.svd b/svd2utra/examples/soc.svd index 40cf6f1a9..4781c6264 100644 --- a/svd2utra/examples/soc.svd +++ b/svd2utra/examples/soc.svd @@ -1362,7 +1362,7 @@ beyond the tag indicated in `MAJOR`, `MINOR`, and `REVISION`.]]> GIT_DIRTY 0x001c - 0x00 + 0x01 32 @@ -1957,8 +1957,7 @@ upon the completion of one byte of data transfer.]]> EV_STATUS - + 0x0018 0x00 32 @@ -1970,12 +1969,18 @@ Writes to this register have no effect.]]> 0 + + txrx_done + 1 + [1:1] + 1 + + EV_PENDING - + 0x001c 0x00 32 @@ -1985,14 +1990,20 @@ register. To clear the Event, set the corresponding bit in this register.]]>0 [0:0] 0 - + + + + txrx_done + 1 + [1:1] + 1 + EV_ENABLE - + 0x0020 0x00 32 @@ -2004,6 +2015,13 @@ register to disable individual events.]]> 0 + + txrx_done + 1 + [1:1] + 1 + + @@ -3038,7 +3056,7 @@ again until the interrupt is serviced.]]> SEED1 0x0000 - 0x48f7dee1 + 0x508efbe6 32 @@ -3053,7 +3071,7 @@ again until the interrupt is serviced.]]> SEED0 0x0004 - 0xc2db130 + 0x1f1cd099 32