stm32/wpan: move schi command into sys

This commit is contained in:
xoviat 2023-06-15 21:02:10 -05:00
parent 64e3310e64
commit af451b5462
6 changed files with 56 additions and 38 deletions
tests/stm32/src/bin

View file

@ -11,6 +11,7 @@ use embassy_executor::Spawner;
use embassy_stm32::bind_interrupts;
use embassy_stm32::ipcc::Config;
use embassy_stm32_wpan::rc::RadioCoprocessor;
use embassy_stm32_wpan::sys::Sys;
use embassy_stm32_wpan::TlMbox;
use embassy_time::{Duration, Timer};
@ -56,6 +57,8 @@ async fn main(_spawner: Spawner) {
let response = rc.read().await;
info!("coprocessor ready {}", response);
Sys::shci_ble_init(Default::default());
rc.write(&[0x01, 0x03, 0x0c, 0x00, 0x00]);
let response = rc.read().await;
info!("ble reset rsp {}", response);