This commit is contained in:
Brandon Ros
2023-08-22 18:33:43 -04:00
parent ecda081895
commit 145a5cb762
6 changed files with 57 additions and 16 deletions

View File

@ -49,7 +49,15 @@ async fn main(spawner: Spawner) {
let state = make_static!(cyw43::State::new());
let bluetooth_firmware_offsets = &cyw43_firmware::BLUETOOTH_FIRMWARE_OFFSETS;
let bluetooth_firmware = &cyw43_firmware::BLUETOOTH_FIRMWARE;
let (_net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw, Some(bluetooth_firmware_offsets), Some(bluetooth_firmware)).await;
let (_net_device, mut control, runner) = cyw43::new(
state,
pwr,
spi,
fw,
Some(bluetooth_firmware_offsets),
Some(bluetooth_firmware),
)
.await;
unwrap!(spawner.spawn(cyw43_runner_task(runner)));
control.init(clm).await;
@ -67,4 +75,4 @@ async fn main(spawner: Spawner) {
control.gpio_set(0, false).await;
Timer::after(delay).await;
}
}
}

View File

@ -65,4 +65,4 @@ async fn main(spawner: Spawner) {
control.gpio_set(0, false).await;
Timer::after(delay).await;
}
}
}