From 15f8d7b10e9214a8fbbe915765f6f0baeca585db Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 18 Feb 2024 20:05:52 +0100 Subject: [PATCH] set SRXISEL --- pic32-hal/src/spi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pic32-hal/src/spi.rs b/pic32-hal/src/spi.rs index 6b15b83..8097050 100644 --- a/pic32-hal/src/spi.rs +++ b/pic32-hal/src/spi.rs @@ -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) });