stm32/ipcc: fix warnings
This commit is contained in:
parent
383bef1711
commit
7f702fd6f1
@ -59,7 +59,7 @@ impl Ble {
|
|||||||
|
|
||||||
core::ptr::copy(buf.as_ptr(), pcmd_serial_buf, buf.len());
|
core::ptr::copy(buf.as_ptr(), pcmd_serial_buf, buf.len());
|
||||||
|
|
||||||
let mut cmd_packet = &mut *(*TL_REF_TABLE.assume_init().ble_table).pcmd_buffer;
|
let cmd_packet = &mut *(*TL_REF_TABLE.assume_init().ble_table).pcmd_buffer;
|
||||||
cmd_packet.cmd_serial.ty = TlPacketType::BleCmd as u8;
|
cmd_packet.cmd_serial.ty = TlPacketType::BleCmd as u8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ pub fn shci_ble_init(ipcc: &mut Ipcc, param: ShciBleInitCmdParam) {
|
|||||||
(*cmd_ptr).cmd_serial.cmd.cmd_code = SCHI_OPCODE_BLE_INIT;
|
(*cmd_ptr).cmd_serial.cmd.cmd_code = SCHI_OPCODE_BLE_INIT;
|
||||||
(*cmd_ptr).cmd_serial.cmd.payload_len = core::mem::size_of::<ShciBleInitCmdParam>() as u8;
|
(*cmd_ptr).cmd_serial.cmd.payload_len = core::mem::size_of::<ShciBleInitCmdParam>() as u8;
|
||||||
|
|
||||||
let mut cmd_buf = &mut *(*TL_SYS_TABLE.as_mut_ptr()).pcmd_buffer;
|
let cmd_buf = &mut *(*TL_SYS_TABLE.as_mut_ptr()).pcmd_buffer;
|
||||||
core::ptr::write(cmd_buf, *cmd_ptr);
|
core::ptr::write(cmd_buf, *cmd_ptr);
|
||||||
|
|
||||||
cmd_buf.cmd_serial.ty = TlPacketType::SysCmd as u8;
|
cmd_buf.cmd_serial.ty = TlPacketType::SysCmd as u8;
|
||||||
|
@ -77,7 +77,7 @@ impl Sys {
|
|||||||
|
|
||||||
core::ptr::copy(buf.as_ptr(), cmd_serial_buf, buf.len());
|
core::ptr::copy(buf.as_ptr(), cmd_serial_buf, buf.len());
|
||||||
|
|
||||||
let mut cmd_packet = &mut *(*TL_REF_TABLE.assume_init().sys_table).pcmd_buffer;
|
let cmd_packet = &mut *(*TL_REF_TABLE.assume_init().sys_table).pcmd_buffer;
|
||||||
cmd_packet.cmd_serial.ty = TlPacketType::SysCmd as u8;
|
cmd_packet.cmd_serial.ty = TlPacketType::SysCmd as u8;
|
||||||
|
|
||||||
ipcc.c1_set_flag_channel(channels::cpu1::IPCC_SYSTEM_CMD_RSP_CHANNEL);
|
ipcc.c1_set_flag_channel(channels::cpu1::IPCC_SYSTEM_CMD_RSP_CHANNEL);
|
||||||
|
Loading…
Reference in New Issue
Block a user