Add handling of the X0 message (restart the MMU) via Watchdog

pull/67/head^2
D.R.racer 2021-07-20 07:28:43 +02:00 committed by Alex Voinea
parent 324ced6807
commit 3b46c35595
1 changed files with 5 additions and 2 deletions

View File

@ -294,12 +294,15 @@ void ProcessRequestMsg(const mp::RequestMsg &rq) {
break;
case mp::RequestMsgCodes::Reset:
// immediately reset the board - there is no response in this case
break; // @@TODO
hal::watchdog::ConfigureWatchDog(1); // set the watchdog to the lowest possible timeout
for (;;)
; // cycle indefinitely (i.e. let the watchdog reset the CPU)
break;
case mp::RequestMsgCodes::Version:
ReportVersion(rq);
break;
case mp::RequestMsgCodes::Wait:
break; // @@TODO
break; // @@TODO - not used anywhere yet
case mp::RequestMsgCodes::Cut:
case mp::RequestMsgCodes::Eject:
case mp::RequestMsgCodes::Load: