Skip to content

Commit 4e5f98f

Browse files
committed
Fix or move to broken examples
1 parent 474ed2d commit 4e5f98f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

boards/wio_terminal/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ name = "buttons"
102102
name = "clock"
103103
required-features = ["usb"]
104104

105-
[[example]]
106-
name = "microphone"
107-
105+
# [[example]]
106+
# name = "microphone"
107+
108108
[[example]]
109109
name = "orientation"
110110

File renamed without changes.
File renamed without changes.

boards/wio_terminal/examples/eic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use bsp::entry;
1818
use hal::clock::GenericClockController;
1919
use hal::delay::Delay;
2020
use hal::eic::{Eic, Sense};
21-
use hal::gpio::{Pins, Pin, PullUpInterrupt};
21+
use hal::gpio::{Pin, Pins, PullUpInterrupt};
2222
use hal::prelude::*;
2323
use pac::{interrupt, CorePeripherals, Peripherals};
2424
use wio_terminal::aliases::UserLed;
@@ -47,7 +47,7 @@ fn main() -> ! {
4747
let mut delay = Delay::new(core.SYST, &mut clocks);
4848

4949
let eic_clock = clocks.eic(&gclk0).unwrap();
50-
let eic_channels = Eic::new(&mut peripherals.mclk, eic_clock, peripherals.eic).split();
50+
let eic_channels = Eic::new(&mut peripherals.mclk, &eic_clock, peripherals.eic).split();
5151

5252
let button: Pin<_, PullUpInterrupt> = pins.pd10.into();
5353
let mut extint = eic_channels.5.with_pin(button);

0 commit comments

Comments
 (0)