Update dependencies
This commit is contained in:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user