Skip to content

Commit

Permalink
set SRXISEL
Browse files Browse the repository at this point in the history
  • Loading branch information
kiffie committed Feb 18, 2024
1 parent b186538 commit 15f8d7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pic32-hal/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ macro_rules! spi {
.mode16().bit(frame_format.mode16())
.ckp().bit(true)
.stxisel().bits(0b11) // IRQ when buffer not full
.srxisel().bits(0b01) // IRQ when buffer is not empty
.msten().bit(true)
.on().bit(true)
});
Expand Down

0 comments on commit 15f8d7b

Please sign in to comment.