From 709eae8566d2bf4a4d7f4ae6230a35dd05a00bf0 Mon Sep 17 00:00:00 2001 From: linuswck Date: Thu, 11 Jan 2024 17:46:35 +0800 Subject: [PATCH] max5719: Slow down SPI clock - setting it to 30MHz hang MCU core --- src/laser_diode/max5719.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laser_diode/max5719.rs b/src/laser_diode/max5719.rs index 0554398..dd50684 100644 --- a/src/laser_diode/max5719.rs +++ b/src/laser_diode/max5719.rs @@ -9,7 +9,7 @@ pub const SPI_MODE: spi::Mode = spi::Mode { polarity: spi::Polarity::IdleLow, phase: spi::Phase::CaptureOnFirstTransition, }; -pub const SPI_CLOCK_MHZ: MegahertzU32 = MegahertzU32::from_raw(30); +pub const SPI_CLOCK_MHZ: MegahertzU32 = MegahertzU32::from_raw(10); pub const MAX_VALUE: u32 = 0xFFFFF;