Further extend the dma channel trait

This commit is contained in:
Joshua Salzedo
2021-09-29 18:19:01 -07:00
committed by Dario Nieuwenhuis
parent 93e047ede2
commit e2719aba10
3 changed files with 92 additions and 35 deletions

View File

@ -139,7 +139,7 @@ unsafe fn _get_remaining_transfers(dma: pac::bdma::Dma, ch: u8) -> u16 {
}
/// Sets the waker for the specified DMA channel
unsafe fn _set_waker(dma: pac::bdma::Dma, state_number: u8, waker: &Waker) {
unsafe fn _set_waker(_dma: pac::bdma::Dma, state_number: u8, waker: &Waker) {
let n = state_number as usize;
STATE.ch_wakers[n].register(waker);
}