fix interrupt pending clear issue in debug module

during conversion to documented interrupts from Litex a case was
missed.
This commit is contained in:
bunnie 2020-11-24 22:44:19 +08:00
parent e7aa2c70a0
commit bc832b3a50
7 changed files with 9 additions and 5 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "services/com/com_rs"]
path = services/com/com_rs
url = https://github.com/betrusted-io/com_rs

View file

@ -78,7 +78,7 @@ impl Uart {
0 => None,
ack => {
let c = Some(uart_csr.r(utra::uart::RXTX) as u8);
uart_csr.wo(utra::uart::EV_PENDING, ack);
uart_csr.wfo(utra::uart::EV_PENDING_RX, ack);
c
}
}

1
services/com/com_rs Submodule

@ -0,0 +1 @@
Subproject commit 09935173976137e4010503f3c7e9f6db13cc28f9

View file

@ -95,7 +95,7 @@ impl Uart {
0 => None,
ack => {
let c = Some(uart_csr.rf(utra::uart::RXTX_RXTX) as u8);
uart_csr.wo(utra::uart::EV_PENDING, ack);
uart_csr.wfo(utra::uart::EV_PENDING_RX, ack);
c
}
}

View file

@ -88,7 +88,7 @@ impl Uart {
0 => None,
ack => {
let c = Some(uart_csr.rf(utra::uart::RXTX_RXTX) as u8);
uart_csr.wo(utra::uart::EV_PENDING, ack);
uart_csr.wfo(utra::uart::EV_PENDING_RX, ack);
c
}
}

View file

@ -94,7 +94,7 @@ impl Uart {
0 => None,
ack => {
let c = Some(uart_csr.rf(utra::uart::RXTX_RXTX) as u8);
uart_csr.wo(utra::uart::EV_PENDING, ack);
uart_csr.wfo(utra::uart::EV_PENDING_RX, ack);
c
}
}

View file

@ -97,7 +97,7 @@ impl Uart {
0 => None,
ack => {
let c = Some(uart_csr.rf(utra::uart::RXTX_RXTX) as u8);
uart_csr.wo(utra::uart::EV_PENDING, ack);
uart_csr.wfo(utra::uart::EV_PENDING_RX, ack);
c
}
}