Only check for ahb error in DMA

This commit is contained in:
Mathias 2022-08-23 13:46:48 +02:00
parent 594a64b3bf
commit b88ef03214

View File

@ -17,13 +17,7 @@ unsafe fn DMA_IRQ_0() {
for channel in 0..CHANNEL_COUNT { for channel in 0..CHANNEL_COUNT {
let ctrl_trig = pac::DMA.ch(channel).ctrl_trig().read(); let ctrl_trig = pac::DMA.ch(channel).ctrl_trig().read();
if ctrl_trig.ahb_error() { if ctrl_trig.ahb_error() {
panic!("DMA: ahb error on DMA_0 channel {}", channel); panic!("DMA: error on DMA_0 channel {}", channel);
}
if ctrl_trig.read_error() {
panic!("DMA: read error on DMA_0 channel {}", channel);
}
if ctrl_trig.write_error() {
panic!("DMA: write error on DMA_0 channel {}", channel);
} }
if ints0 & (1 << channel) == (1 << channel) { if ints0 & (1 << channel) == (1 << channel) {