fix build

This commit is contained in:
goueslati 2023-06-22 15:31:45 +01:00
parent cd4f8f13a2
commit 810c6af77a
3 changed files with 7 additions and 7 deletions

View File

@ -52,10 +52,10 @@ async fn main(_spawner: Spawner) {
mbox.sys_subsystem.shci_c2_ble_init(Default::default()).await;
info!("starting ble...");
mbox.ble_subsystem.write(0x0c, &[]).await;
mbox.ble_subsystem.tl_write(0x0c, &[]).await;
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());

View File

@ -46,16 +46,16 @@ async fn main(_spawner: Spawner) {
let config = Config::default();
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());
mbox.sys_subsystem.shci_c2_mac_802_15_4_init().await;
//
// info!("starting ble...");
// mbox.ble_subsystem.write(0x0c, &[]).await;
// mbox.ble_subsystem.t_write(0x0c, &[]).await;
//
// 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());

View File

@ -63,10 +63,10 @@ async fn main(spawner: Spawner) {
info!("subsystem initialization: {}", result);
info!("starting ble...");
mbox.ble_subsystem.write(0x0c, &[]).await;
mbox.ble_subsystem.tl_write(0x0c, &[]).await;
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());