fix build
This commit is contained in:
parent
cd4f8f13a2
commit
810c6af77a
@ -52,10 +52,10 @@ async fn main(_spawner: Spawner) {
|
|||||||
mbox.sys_subsystem.shci_c2_ble_init(Default::default()).await;
|
mbox.sys_subsystem.shci_c2_ble_init(Default::default()).await;
|
||||||
|
|
||||||
info!("starting ble...");
|
info!("starting ble...");
|
||||||
mbox.ble_subsystem.write(0x0c, &[]).await;
|
mbox.ble_subsystem.tl_write(0x0c, &[]).await;
|
||||||
|
|
||||||
info!("waiting for ble...");
|
info!("waiting for ble...");
|
||||||
let ble_event = mbox.ble_subsystem.read().await;
|
let ble_event = mbox.ble_subsystem.tl_read().await;
|
||||||
|
|
||||||
info!("ble event: {}", ble_event.payload());
|
info!("ble event: {}", ble_event.payload());
|
||||||
|
|
||||||
|
@ -46,16 +46,16 @@ async fn main(_spawner: Spawner) {
|
|||||||
let config = Config::default();
|
let config = Config::default();
|
||||||
let mbox = TlMbox::init(p.IPCC, Irqs, config);
|
let mbox = TlMbox::init(p.IPCC, Irqs, config);
|
||||||
|
|
||||||
let sys_event = mbox.sys_subsystem.read().await;
|
let sys_event = mbox.sys_subsystem.tl_read().await;
|
||||||
info!("sys event: {}", sys_event.payload());
|
info!("sys event: {}", sys_event.payload());
|
||||||
|
|
||||||
mbox.sys_subsystem.shci_c2_mac_802_15_4_init().await;
|
mbox.sys_subsystem.shci_c2_mac_802_15_4_init().await;
|
||||||
//
|
//
|
||||||
// info!("starting ble...");
|
// info!("starting ble...");
|
||||||
// mbox.ble_subsystem.write(0x0c, &[]).await;
|
// mbox.ble_subsystem.t_write(0x0c, &[]).await;
|
||||||
//
|
//
|
||||||
// info!("waiting for ble...");
|
// info!("waiting for ble...");
|
||||||
// let ble_event = mbox.ble_subsystem.read().await;
|
// let ble_event = mbox.ble_subsystem.tl_read().await;
|
||||||
//
|
//
|
||||||
// info!("ble event: {}", ble_event.payload());
|
// info!("ble event: {}", ble_event.payload());
|
||||||
|
|
||||||
|
@ -63,10 +63,10 @@ async fn main(spawner: Spawner) {
|
|||||||
info!("subsystem initialization: {}", result);
|
info!("subsystem initialization: {}", result);
|
||||||
|
|
||||||
info!("starting ble...");
|
info!("starting ble...");
|
||||||
mbox.ble_subsystem.write(0x0c, &[]).await;
|
mbox.ble_subsystem.tl_write(0x0c, &[]).await;
|
||||||
|
|
||||||
info!("waiting for ble...");
|
info!("waiting for ble...");
|
||||||
let ble_event = mbox.ble_subsystem.read().await;
|
let ble_event = mbox.ble_subsystem.tl_read().await;
|
||||||
|
|
||||||
info!("ble event {:x} : {:x}", ble_event.stub().kind, ble_event.payload());
|
info!("ble event {:x} : {:x}", ble_event.stub().kind, ble_event.payload());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user