Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MTS-Serial libmDot mbed-rtos mbed-src
Fork of mDot_AT_firmware by
CmdResetCpu.cpp
00001 #include "CmdResetCpu.h" 00002 00003 CmdResetCpu::CmdResetCpu(mDot* dot, mts::MTSSerial& serial) : Command(dot, "Reset CPU", "ATZ", "Reset the CPU"), _serial(serial) 00004 { 00005 _help = std::string(text()) + ": " + std::string(desc()); 00006 } 00007 00008 uint32_t CmdResetCpu::action(std::vector<std::string> args) 00009 { 00010 _serial.writef("\r\nOK\r\n"); 00011 wait(0.5); 00012 HAL_NVIC_SystemReset(); 00013 return 0; 00014 } 00015
Generated on Tue Jul 12 2022 21:40:57 by
1.7.2
