Update dependencies

This commit is contained in:
2020-04-18 13:32:09 +02:00
parent ae39713e0b
commit 8e00a9b341
5 changed files with 129 additions and 175 deletions

View File

@ -5,7 +5,8 @@ use hal::{
gpio::{Pa10, Pa11, PfC},
prelude::*,
sercom::{PadPin, Sercom0Pad2, Sercom0Pad3, UART0},
time, CorePeripherals, Peripherals,
time,
pac::Peripherals,
};
#[panic_handler]
@ -15,7 +16,6 @@ fn panic(info: &PanicInfo) -> ! {
let mut red_led = pins.d13.into_open_drain_output(&mut pins.port);
red_led.set_high().ok();
let mut core = unsafe { CorePeripherals::steal() };
let mut clocks = GenericClockController::with_internal_32kosc(
peripherals.GCLK,
&mut peripherals.PM,
@ -28,7 +28,6 @@ fn panic(info: &PanicInfo) -> ! {
&clocks.sercom0_core(&glck0).unwrap(),
time::Hertz(115200),
peripherals.SERCOM0,
&mut core.NVIC,
&mut peripherals.PM,
(
pins.d0.into_pad(&mut pins.port),