MultiTech / Mbed OS mDot_AT_firmware_CUSTOM

Dependencies:   libmDot-Custom MTS-Serial

Fork of mDot_AT_firmware_CUSTOM by Jason Reiss

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