We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d15e318 commit 2e7445aCopy full SHA for 2e7445a
examples/adc.rs
@@ -5,6 +5,7 @@
5
6
use panic_semihosting as _;
7
8
+use cortex_m::asm;
9
use cortex_m_rt::entry;
10
use cortex_m_semihosting::hprintln;
11
@@ -55,5 +56,6 @@ fn main() -> ! {
55
56
loop {
57
let adc1_in1_data: u16 = adc1.read(&mut adc1_in1_pin).expect("Error reading adc1.");
58
hprintln!("PA0 reads {}", adc1_in1_data).ok();
59
+ asm::delay(2_000_000);
60
}
61
examples/gpio_erased.rs
@@ -50,7 +50,7 @@ fn main() -> ! {
50
51
for pin in pin_array.iter_mut() {
52
hprintln!("Value is {}", pin.is_high().unwrap()).unwrap();
53
- asm::delay(1_000);
+ asm::delay(1_000_000);
54
0 commit comments