sam3x8e: Implement reset command

Support restarting the mcu via a new reset command.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-04-02 23:16:20 -04:00
parent 0c3ec7f9a5
commit 85c0e9c574
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,13 @@ DECL_INIT(watchdog_init);
* misc functions
****************************************************************/
void
command_reset(uint32_t *args)
{
NVIC_SystemReset();
}
DECL_COMMAND_FLAGS(command_reset, HF_IN_SHUTDOWN, "reset");
size_t
alloc_maxsize(size_t reqsize)
{