build: update dependencies
This commit is contained in:
1 parent
11a8fa7c6d
commit
b1a603f150
2 files changed
+11
-21
No files matched your search
+9
-17
@@ -1,28 +1,20 @@
|
|||||||
[package]
|
[package]
|
||||||
authors = ["Lucas Vas <lvas463@gmail.com>"]
|
authors = ["Lucas Vas <lvas463@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
readme = "README.md"
|
|
||||||
name = "test-cargo"
|
name = "test-cargo"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cortex-m = "0.7.7"
|
|
||||||
cortex-m-rt = "0.7.3"
|
cortex-m-rt = "0.7.3"
|
||||||
panic-halt = "0.2.0"
|
panic-halt = "1.0.0"
|
||||||
defmt = "0.3.8"
|
defmt = "1.0.1"
|
||||||
defmt-rtt = "0.4.1"
|
defmt-rtt = "1.1.0"
|
||||||
embedded-hal = "1.0.0"
|
embassy-rp = { version = "0.8.0", features = [ "defmt", "time-driver", "unstable-pac", "critical-section-impl", "rp2040" ] }
|
||||||
embedded-hal-async = "1.0.0"
|
embassy-time = { version = "0.5.0", features = [ "defmt", "defmt-timestamp-uptime" ] }
|
||||||
embedded-io = "0.6.1"
|
embassy-executor = { version = "0.9.1", features = [ "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt" ] }
|
||||||
embedded-io-async = "0.6.1"
|
cyw43 = { version = "0.5.0", features = [ "defmt", "firmware-logs" ] }
|
||||||
embedded-storage = "0.3.1"
|
cyw43-pio = { version = "0.8.0", features = [ "defmt" ] }
|
||||||
embassy-rp = { version = "0.2.0", features = [ "defmt", "time-driver", "unstable-pac", "critical-section-impl" ] }
|
static_cell = "2.1.1"
|
||||||
embassy-time = { version = "0.3.0", features = [ "defmt", "defmt-timestamp-uptime" ] }
|
|
||||||
embassy-executor = { version = "0.5.0", features = [ "task-arena-size-1024", "arch-cortex-m", "executor-thread", "defmt", "integrated-timers", "executor-interrupt" ] }
|
|
||||||
cyw43 = { version = "=0.1.0", features = [ "defmt", "firmware-logs" ] }
|
|
||||||
cyw43-pio = "0.2.0"
|
|
||||||
static_cell = "2.1.0"
|
|
||||||
portable-atomic = { version = "1.7.0", features = ["critical-section"] }
|
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "test-cargo"
|
name = "test-cargo"
|
||||||
|
|||||||
+2
-4
@@ -1,7 +1,7 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
use cyw43_pio::PioSpi;
|
use cyw43_pio::{PioSpi, DEFAULT_CLOCK_DIVIDER};
|
||||||
use embassy_executor::Spawner;
|
use embassy_executor::Spawner;
|
||||||
use embassy_time::{Duration, Timer};
|
use embassy_time::{Duration, Timer};
|
||||||
use embassy_rp::{
|
use embassy_rp::{
|
||||||
@@ -38,11 +38,9 @@ async fn main(spawner: Spawner) {
|
|||||||
let power = Output::new(p.PIN_23, Level::Low);
|
let power = Output::new(p.PIN_23, Level::Low);
|
||||||
let cs = Output::new(p.PIN_25, Level::High);
|
let cs = Output::new(p.PIN_25, Level::High);
|
||||||
let mut pio = Pio::new(p.PIO0, Irqs);
|
let mut pio = Pio::new(p.PIO0, Irqs);
|
||||||
let spi = PioSpi::new(&mut pio.common, pio.sm0, pio.irq0, cs, p.PIN_24, p.PIN_29, p.DMA_CH0);
|
let spi = PioSpi::new(&mut pio.common, pio.sm0, DEFAULT_CLOCK_DIVIDER, pio.irq0, cs, p.PIN_24, p.PIN_29, p.DMA_CH0);
|
||||||
|
|
||||||
let state = singleton!(cyw43::State::new());
|
let state = singleton!(cyw43::State::new());
|
||||||
static THING: StaticCell<cyw43::State> = StaticCell::new();
|
|
||||||
let state = THING.init_with(cyw43::State::new());
|
|
||||||
let (_net_device, mut control, runner) = cyw43::new(state, power, spi, fw).await;
|
let (_net_device, mut control, runner) = cyw43::new(state, power, spi, fw).await;
|
||||||
unwrap!(spawner.spawn(cyw43_task(runner)));
|
unwrap!(spawner.spawn(cyw43_task(runner)));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user