Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
little-arhat committed Aug 29, 2019
1 parent 654dcff commit 92c51da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ macro_rules! dma {
}

impl<B> CircBuffer<B, $CX> {
/// clears interrupt
pub fn clear_interrupt(&mut self) {
self.channel.ifcr().write(|w| w.$cgifX().set_bit());
}

/// Peeks into the readable half of the buffer
pub fn peek<R, F>(&mut self, f: F) -> Result<R, Error>
where
Expand All @@ -213,7 +218,6 @@ macro_rules! dma {
// XXX does this need a compiler barrier?
let ret = f(buf, half_being_read);


let isr = self.channel.isr();
let first_half_is_done = isr.$htifX().bit_is_set();
let second_half_is_done = isr.$tcifX().bit_is_set();
Expand Down

0 comments on commit 92c51da

Please sign in to comment.