cyw43: bluetooth module that almost works

This commit is contained in:
Brandon Ros
2023-08-20 18:10:57 -04:00
parent 6babd5752e
commit 8d588f0abd
9 changed files with 343 additions and 14 deletions

View File

@ -32,6 +32,7 @@ async fn wifi_task(
async fn main(spawner: Spawner) {
let p = embassy_rp::init(Default::default());
let fw = include_bytes!("../../../../cyw43-firmware/43439A0.bin");
let bt_fw = include_bytes!("../../../../cyw43-firmware/43439A0_btfw.bin");
let clm = include_bytes!("../../../../cyw43-firmware/43439A0_clm.bin");
// To make flashing faster for development, you may want to flash the firmwares independently
@ -47,7 +48,7 @@ async fn main(spawner: Spawner) {
let spi = PioSpi::new(&mut pio.common, pio.sm0, pio.irq0, cs, p.PIN_24, p.PIN_29, p.DMA_CH0);
let state = make_static!(cyw43::State::new());
let (_net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw).await;
let (_net_device, mut control, runner) = cyw43::new(state, pwr, spi, fw, bt_fw).await;
unwrap!(spawner.spawn(wifi_task(runner)));
control.init(clm).await;