Skip to content
Snippets Groups Projects
Commit 1eb000ba authored by Stephen D's avatar Stephen D
Browse files

faster SPI bus speed

parent 7fb8c744
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ pub struct McuRadio { ...@@ -23,7 +23,7 @@ pub struct McuRadio {
impl McuRadio { impl McuRadio {
pub fn new() -> anyhow::Result<Self> { pub fn new() -> anyhow::Result<Self> {
let spi = Spi::new(Bus::Spi0, SlaveSelect::Ss1, 1_000_000, Mode::Mode0)?; let spi = Spi::new(Bus::Spi0, SlaveSelect::Ss1, 2_000_000, Mode::Mode0)?;
let reset_pin = Gpio::new()?.get(8)?.into_output_high(); let reset_pin = Gpio::new()?.get(8)?.into_output_high();
let mut s = Self { reset_pin, spi }; let mut s = Self { reset_pin, spi };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment