From a0aeaae10610a245afd294018a456f915b11dd43 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 5 May 2024 03:23:37 +0800 Subject: [PATCH] issue command to exit quad mode, in quad mode if not in quad mode, command is ignored; but without this, the command is never accepted if you are in quad mode. the idea is you use this to reset the chip when you don't know what mode it's in. --- libs/cramium-hal/src/udma.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/cramium-hal/src/udma.rs b/libs/cramium-hal/src/udma.rs index 699d19959..d1f379371 100644 --- a/libs/cramium-hal/src/udma.rs +++ b/libs/cramium-hal/src/udma.rs @@ -1193,6 +1193,7 @@ impl Spim { if activate { self.mem_send_cmd(0x35); } else { + self.mode = SpimMode::Quad; // pre-assumes quad mode self.mem_send_cmd(0xF5); } self.mem_cs(false);