adc: transfer complete interrupt on Adc1

This commit is contained in:
Robert Jördens 2020-11-26 11:55:15 +01:00
parent 7189830896
commit 754ebed50d
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ macro_rules! adc_input {
// data stream is used to trigger a transfer completion interrupt.
let data_config = DmaConfig::default()
.memory_increment(true)
.transfer_complete_interrupt($index == 1)
.priority(Priority::VeryHigh);
// A SPI peripheral error interrupt is used to determine if the RX FIFO overflows. This