mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add interrupt clear call
This commit is contained in:
parent
8622fbdf7a
commit
a96abc669f
1 changed files with 5 additions and 0 deletions
|
|
@ -947,6 +947,11 @@ impl PioSm {
|
||||||
(self.pio.r(rp_pio::SFR_IRQ) & (1 << int_number)) != 0
|
(self.pio.r(rp_pio::SFR_IRQ) & (1 << int_number)) != 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn sm_interrupt_clear(&mut self, int_number: usize) {
|
||||||
|
assert!(int_number < 8);
|
||||||
|
self.pio.wo(rp_pio::SFR_IRQ, 1 << int_number)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn sm_drain_tx_fifo(&mut self) {
|
pub fn sm_drain_tx_fifo(&mut self) {
|
||||||
let sm_offset = self.sm_to_stride_offset();
|
let sm_offset = self.sm_to_stride_offset();
|
||||||
let instr = {
|
let instr = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue