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-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdResetCpu.cpp@14:f9a77400b622, 2016-11-04 (annotated)
- Committer:
- Mike Fiore
- Date:
- Fri Nov 04 14:25:43 2016 -0500
- Revision:
- 14:f9a77400b622
- Parent:
- 1:e52ae6584f1c
update from git revision 2.0.16
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Mike Fiore |
1:e52ae6584f1c | 1 | #include "CmdResetCpu.h" |
| Mike Fiore |
1:e52ae6584f1c | 2 | |
| Mike Fiore |
14:f9a77400b622 | 3 | CmdResetCpu::CmdResetCpu() : Command("Reset CPU", "ATZ", "Reset the CPU", "NONE") |
| Mike Fiore |
1:e52ae6584f1c | 4 | { |
| Mike Fiore |
1:e52ae6584f1c | 5 | } |
| Mike Fiore |
1:e52ae6584f1c | 6 | |
| Mike Fiore |
1:e52ae6584f1c | 7 | uint32_t CmdResetCpu::action(std::vector<std::string> args) |
| Mike Fiore |
1:e52ae6584f1c | 8 | { |
| Mike Fiore |
14:f9a77400b622 | 9 | CommandTerminal::Serial()->writef("\r\nOK\r\n"); |
| Mike Fiore |
1:e52ae6584f1c | 10 | wait(0.5); |
| Mike Fiore |
14:f9a77400b622 | 11 | CommandTerminal::Dot()->resetCpu(); |
| Mike Fiore |
1:e52ae6584f1c | 12 | return 0; |
| Mike Fiore |
1:e52ae6584f1c | 13 | } |
| Mike Fiore |
1:e52ae6584f1c | 14 |
