MicroLabo / Mbed OS mbed-Dot-AT-Firmware

Dependencies:   MTS-Serial libmDot-mbed5

Fork of Dot-AT-Firmware by MultiTech

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CmdResetCpu.cpp Source File

CmdResetCpu.cpp

00001 #include "CmdResetCpu.h"
00002 
00003 CmdResetCpu::CmdResetCpu() : Command("Reset CPU", "ATZ", "Reset the CPU", "NONE")
00004 {
00005 }
00006 
00007 uint32_t CmdResetCpu::action(std::vector<std::string> args) 
00008 {
00009     CommandTerminal::Serial()->writef("\r\nOK\r\n");
00010     wait(0.5);
00011     CommandTerminal::Dot()->resetCpu();
00012     return 0; 
00013 }
00014