mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-27 04:08:27 +08:00
drtio-proto: remove reboot imminent message
This commit is contained in:
parent
f6cf66966d
commit
7af8511de3
@ -143,7 +143,6 @@ pub enum Packet {
|
||||
CoreMgmtConfigReadReply { last: bool, length: u16, value: [u8; SAT_PAYLOAD_MAX_SIZE] },
|
||||
CoreMgmtAck,
|
||||
CoreMgmtNack,
|
||||
CoreMgmtRebootImminent,
|
||||
}
|
||||
|
||||
impl Packet {
|
||||
@ -508,7 +507,6 @@ impl Packet {
|
||||
},
|
||||
0xdd => Packet::CoreMgmtAck,
|
||||
0xde => Packet::CoreMgmtNack,
|
||||
0xdf => Packet::CoreMgmtRebootImminent,
|
||||
|
||||
ty => return Err(Error::UnknownPacket(ty))
|
||||
})
|
||||
@ -880,7 +878,6 @@ impl Packet {
|
||||
},
|
||||
Packet::CoreMgmtAck => writer.write_u8(0xdd)?,
|
||||
Packet::CoreMgmtNack => writer.write_u8(0xde)?,
|
||||
Packet::CoreMgmtRebootImminent => writer.write_u8(0xdf)?,
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
@ -372,7 +372,6 @@ mod remote_coremgmt {
|
||||
destination: destination, length: len as u16, last: status.is_last(), data: *slice});
|
||||
match reply {
|
||||
Ok(Packet::CoreMgmtAck) => Ok(()),
|
||||
Ok(Packet::CoreMgmtRebootImminent) if status.is_last() => Ok(()),
|
||||
Ok(packet) => {
|
||||
error!("received unexpected aux packet: {:?}", packet);
|
||||
Err(drtio::Error::UnexpectedReply)
|
||||
|
@ -53,7 +53,7 @@ impl Manager {
|
||||
|
||||
match key.as_str() {
|
||||
"gateware" | "bootloader" | "firmware" => {
|
||||
drtioaux::send(0, &drtioaux::Packet::CoreMgmtRebootImminent)?;
|
||||
drtioaux::send(0, &drtioaux::Packet::CoreMgmtAck)?;
|
||||
#[cfg(not(soc_platform = "efc"))]
|
||||
unsafe {
|
||||
clock::spin_us(10000);
|
||||
|
Loading…
Reference in New Issue
Block a user