few changes for RTS/CTS control
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_AT_firmware by
CommandTerminal/CmdResetCpu.cpp
- Committer:
- serg838
- Date:
- 2016-10-25
- Revision:
- 11:77b7911263da
- Parent:
- 1:e52ae6584f1c
File content as of revision 11:77b7911263da:
#include "CmdResetCpu.h" CmdResetCpu::CmdResetCpu(mDot* dot, mts::MTSSerial& serial) : Command(dot, "Reset CPU", "ATZ", "Reset the CPU"), _serial(serial) { _help = std::string(text()) + ": " + std::string(desc()); } uint32_t CmdResetCpu::action(std::vector<std::string> args) { _serial.writef("\r\nOK\r\n"); wait(0.5); HAL_NVIC_SystemReset(); return 0; }