Remove unneeded crates
This commit is contained in:
parent
87ed5e675c
commit
886c8135e7
2 changed files with 0 additions and 9 deletions
|
@ -9,8 +9,6 @@ cortex-m-rt = "0.7.2"
|
||||||
embedded-hal = { version = "0.2.7", features = ["unproven"] }
|
embedded-hal = { version = "0.2.7", features = ["unproven"] }
|
||||||
embedded-time = "0.12.1"
|
embedded-time = "0.12.1"
|
||||||
|
|
||||||
defmt = "0.3.2"
|
|
||||||
defmt-rtt = "0.4"
|
|
||||||
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
||||||
|
|
||||||
usb-device= "0.2.9"
|
usb-device= "0.2.9"
|
||||||
|
|
|
@ -7,15 +7,12 @@
|
||||||
mod serial;
|
mod serial;
|
||||||
|
|
||||||
use bsp::entry;
|
use bsp::entry;
|
||||||
use defmt::*;
|
|
||||||
use defmt_rtt as _;
|
|
||||||
use embedded_hal::digital::v2::OutputPin;
|
use embedded_hal::digital::v2::OutputPin;
|
||||||
use panic_probe as _;
|
use panic_probe as _;
|
||||||
|
|
||||||
// Provide an alias for our BSP so we can switch targets quickly.
|
// Provide an alias for our BSP so we can switch targets quickly.
|
||||||
// Uncomment the BSP you included in Cargo.toml, the rest of the code does not need to change.
|
// Uncomment the BSP you included in Cargo.toml, the rest of the code does not need to change.
|
||||||
use rp_pico as bsp;
|
use rp_pico as bsp;
|
||||||
// use sparkfun_pro_micro_rp2040 as bsp;
|
|
||||||
|
|
||||||
use bsp::hal::{
|
use bsp::hal::{
|
||||||
clocks::{init_clocks_and_plls, Clock},
|
clocks::{init_clocks_and_plls, Clock},
|
||||||
|
@ -35,8 +32,6 @@ use crate::serial::{Commands, Serial};
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
info!("Program start");
|
|
||||||
|
|
||||||
let mut pac = pac::Peripherals::take().unwrap();
|
let mut pac = pac::Peripherals::take().unwrap();
|
||||||
let core = pac::CorePeripherals::take().unwrap();
|
let core = pac::CorePeripherals::take().unwrap();
|
||||||
let mut watchdog = Watchdog::new(pac.WATCHDOG);
|
let mut watchdog = Watchdog::new(pac.WATCHDOG);
|
||||||
|
@ -98,8 +93,6 @@ fn main() -> ! {
|
||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
info!("start!");
|
|
||||||
|
|
||||||
// serial.write("test".as_bytes());
|
// serial.write("test".as_bytes());
|
||||||
|
|
||||||
// serial_send(&mut serial, "test");
|
// serial_send(&mut serial, "test");
|
||||||
|
|
Loading…
Reference in a new issue