Skip to content

Commit

Permalink
Merge branch 'main' into transfer_navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
misha7b committed Nov 16, 2024
2 parents 429ec17 + 0842a75 commit 70bf0a9
Show file tree
Hide file tree
Showing 20 changed files with 1,045 additions and 54 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ exclude = [
"boards/stm32l476rg",
"boards/stm32h743zi",
"boards/stm32f767zi",
"boards/stm32l432kc",
]
resolver = "2"
3 changes: 1 addition & 2 deletions boards/stm32f767zi/src/bin/adc_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ async fn main(_spawner: Spawner) {
(u32::from(sample) * VREFINT_MV / u32::from(vrefint_sample)) as u16
};


let mut hyped_adc = Stm32f767ziAdc::new(adc, pin.degrade_adc());

loop {
let v = hyped_adc.read_value();
info!("--> {} - {} mV", v, convert_to_millivolts(v));
Timer::after_millis(100).await;
}
}
}
2 changes: 1 addition & 1 deletion boards/stm32f767zi/src/io.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod adc;
pub mod gpio;
pub mod i2c;
pub mod adc;
9 changes: 9 additions & 0 deletions boards/stm32l432kc/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# replace STM32F429ZITx with your chip as listed in `probe-rs chip list`
runner = "probe-rs run --chip STM32L432KCUx"

[build]
target = "thumbv7em-none-eabihf"

[env]
DEFMT_LOG = "debug,smoltcp=info"
Loading

0 comments on commit 70bf0a9

Please sign in to comment.