1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-25 00:48:19 +00:00

chore(legacy): add reset to bootloader protobuf message

This commit is contained in:
Ondrej Mikle 2021-02-25 12:54:29 +01:00 committed by Pavol Rusnak
parent b625b74bc7
commit 2dccbf99d4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 18 additions and 0 deletions

View File

@ -405,3 +405,11 @@ message PreauthorizedRequest {
*/
message CancelAuthorization {
}
/**
* Request: Reboot firmware to bootloader
* @start
* Can't have response.
*/
message RebootToBootloader {
}

View File

@ -278,4 +278,6 @@ enum MessageType {
MessageType_WebAuthnCredentials = 801 [(wire_out) = true];
MessageType_WebAuthnAddResidentCredential = 802 [(wire_in) = true];
MessageType_WebAuthnRemoveResidentCredential = 803 [(wire_in) = true];
MessageType_RebootToBootloader = 804 [(wire_in) = true];
}

View File

@ -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_common.h"
#include "fsm_msg_crypto.h"

View File

@ -138,4 +138,6 @@ void fsm_msgStellarAccountMergeOp(const StellarAccountMergeOp *msg);
void fsm_msgStellarManageDataOp(const StellarManageDataOp *msg);
void fsm_msgStellarBumpSequenceOp(const StellarBumpSequenceOp *msg);
void fsm_msgRebootToBootloader(void);
#endif