···30 dma_ch0: DMA_CH0,
31 spawner: Spawner,
32) -> (Device<'a>, Control<'a>) {
33- // let fw = include_bytes!("../cyw43-firmware/43439A0.bin");
34- // let clm = include_bytes!("../cyw43-firmware/43439A0_clm.bin");
35- // let btfw = include_bytes!("../cyw43-firmware/43439A0_btfw.bin");
3637 // To make flashing faster for development, you may want to flash the firmwares independently
38 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`:
39 // probe-rs download 43439A0.bin --binary-format bin --chip RP2040 --base-address 0x10100000
40 // probe-rs download 43439A0_clm.bin --binary-format bin --chip RP2040 --base-address 0x10140000
41 // probe-rs download 43439A0_btfw.bin --binary-format bin --chip RP2040 --base-address 0x10141400
42- let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) };
43- let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) };
44- let btfw = unsafe { core::slice::from_raw_parts(0x10141400 as *const u8, 6164) };
4546 let pwr = Output::new(p_23, Level::Low);
47 let cs = Output::new(p_25, Level::High);
···30 dma_ch0: DMA_CH0,
31 spawner: Spawner,
32) -> (Device<'a>, Control<'a>) {
33+ let fw = include_bytes!("../cyw43-firmware/43439A0.bin");
34+ let clm = include_bytes!("../cyw43-firmware/43439A0_clm.bin");
35+ let btfw = include_bytes!("../cyw43-firmware/43439A0_btfw.bin");
3637 // To make flashing faster for development, you may want to flash the firmwares independently
38 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`:
39 // probe-rs download 43439A0.bin --binary-format bin --chip RP2040 --base-address 0x10100000
40 // probe-rs download 43439A0_clm.bin --binary-format bin --chip RP2040 --base-address 0x10140000
41 // probe-rs download 43439A0_btfw.bin --binary-format bin --chip RP2040 --base-address 0x10141400
42+ // let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) };
43+ // let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) };
44+ // let btfw = unsafe { core::slice::from_raw_parts(0x10141400 as *const u8, 6164) };
4546 let pwr = Output::new(p_23, Level::Low);
47 let cs = Output::new(p_25, Level::High);