From 06fa7f990885ec17220df66094cbe6663719a4da Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 29 Oct 2022 12:22:00 -0400 Subject: cirque: remove ref to stm32 clock struct i don't want this driver to be hardware dependent. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 8c2bac1..fdeb257 100755 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,7 @@ fn main() -> ! { 1_000_000.Hz(), // pinnacle supports up to 13mhz clocks, ); - let mut cirque = match Cirque::new(cs_pin, &mut spi, clocks) { + let mut cirque = match Cirque::new(cs_pin, &mut spi, clocks.sysclk().raw()) { Ok(c) => c, Err(e) => { logln!("err: {:?}", e); -- cgit v1.2.3