From 09487cbcb4db6c163db9347c3ed1b166dc138dbf Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 16 Jan 2024 17:41:41 +0800 Subject: [PATCH] chore: fix default clock rate for simulation framework have to slow down the defalut clock rate for the FIFO test in PIO unit test, so we can capture results in simulation --- libs/xous-pio/src/pio_tests/units.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/xous-pio/src/pio_tests/units.rs b/libs/xous-pio/src/pio_tests/units.rs index df8b0ef34..0823b4a86 100644 --- a/libs/xous-pio/src/pio_tests/units.rs +++ b/libs/xous-pio/src/pio_tests/units.rs @@ -1283,7 +1283,7 @@ pub fn fifo_join_test() -> bool { a_prog.setup_default_config(&mut sm_a); sm_a.config_set_out_pins(0, 32); #[cfg(not(feature = "rp2040"))] - sm_a.config_set_clkdiv(192.0); // slow down the machine so we can read out the values after writing them... + sm_a.config_set_clkdiv(2048.0); // slow down the machine so we can read out the values after writing them... #[cfg(feature = "rp2040")] sm_a.config_set_clkdiv(32768.0); sm_a.config_set_out_shift(false, true, 0);