mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 08:58:14 +00:00
chore(legacy): add reset to bootloader protobuf message
This commit is contained in:
parent
b625b74bc7
commit
2dccbf99d4
@ -405,3 +405,11 @@ message PreauthorizedRequest {
|
|||||||
*/
|
*/
|
||||||
message CancelAuthorization {
|
message CancelAuthorization {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request: Reboot firmware to bootloader
|
||||||
|
* @start
|
||||||
|
* Can't have response.
|
||||||
|
*/
|
||||||
|
message RebootToBootloader {
|
||||||
|
}
|
||||||
|
@ -278,4 +278,6 @@ enum MessageType {
|
|||||||
MessageType_WebAuthnCredentials = 801 [(wire_out) = true];
|
MessageType_WebAuthnCredentials = 801 [(wire_out) = true];
|
||||||
MessageType_WebAuthnAddResidentCredential = 802 [(wire_in) = true];
|
MessageType_WebAuthnAddResidentCredential = 802 [(wire_in) = true];
|
||||||
MessageType_WebAuthnRemoveResidentCredential = 803 [(wire_in) = true];
|
MessageType_WebAuthnRemoveResidentCredential = 803 [(wire_in) = true];
|
||||||
|
|
||||||
|
MessageType_RebootToBootloader = 804 [(wire_in) = true];
|
||||||
}
|
}
|
||||||
|
@ -301,6 +301,12 @@ static bool fsm_layoutAddress(const char *address, const char *desc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fsm_msgRebootToBootloader(void) {
|
||||||
|
#if !EMULATOR
|
||||||
|
svc_reboot_to_bootloader();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#include "fsm_msg_coin.h"
|
#include "fsm_msg_coin.h"
|
||||||
#include "fsm_msg_common.h"
|
#include "fsm_msg_common.h"
|
||||||
#include "fsm_msg_crypto.h"
|
#include "fsm_msg_crypto.h"
|
||||||
|
@ -138,4 +138,6 @@ void fsm_msgStellarAccountMergeOp(const StellarAccountMergeOp *msg);
|
|||||||
void fsm_msgStellarManageDataOp(const StellarManageDataOp *msg);
|
void fsm_msgStellarManageDataOp(const StellarManageDataOp *msg);
|
||||||
void fsm_msgStellarBumpSequenceOp(const StellarBumpSequenceOp *msg);
|
void fsm_msgStellarBumpSequenceOp(const StellarBumpSequenceOp *msg);
|
||||||
|
|
||||||
|
void fsm_msgRebootToBootloader(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user