[ottool] Use a constant for the programming speed
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
diff --git a/sw/host/opentitanlib/src/transport/cw310/usb.rs b/sw/host/opentitanlib/src/transport/cw310/usb.rs
index f5b8524..8c93841 100644
--- a/sw/host/opentitanlib/src/transport/cw310/usb.rs
+++ b/sw/host/opentitanlib/src/transport/cw310/usb.rs
@@ -347,7 +347,8 @@
bitstream: &[u8],
progress: Option<&dyn Fn(u32, u32)>,
) -> Result<()> {
- self.fpga_prepare(20_000_000)?;
+ const PROG_SPEED: u32 = 20_000_000;
+ self.fpga_prepare(PROG_SPEED)?;
let result = self.fpga_download(bitstream, progress);
let mut status = false;