Don't read to clear interrupts (#2585)

This commit is contained in:
Dániel Buga 2024-11-22 11:55:53 +01:00 committed by GitHub
parent 3a4a7632b1
commit 9c1d99d9b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,7 +333,7 @@ impl InterruptAccess<DmaRxInterrupt> for AnySpiDmaRxChannel {
fn clear(&self, interrupts: impl Into<EnumSet<DmaRxInterrupt>>) { fn clear(&self, interrupts: impl Into<EnumSet<DmaRxInterrupt>>) {
let spi = self.0.register_block(); let spi = self.0.register_block();
spi.dma_int_clr().modify(|_, w| { spi.dma_int_clr().write(|w| {
for interrupt in interrupts.into() { for interrupt in interrupts.into() {
match interrupt { match interrupt {
DmaRxInterrupt::SuccessfulEof => w.in_suc_eof().clear_bit_by_one(), DmaRxInterrupt::SuccessfulEof => w.in_suc_eof().clear_bit_by_one(),