mirror of https://github.com/Desuuuu/klipper.git
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:
parent
0c3ec7f9a5
commit
85c0e9c574
|
@ -36,6 +36,13 @@ DECL_INIT(watchdog_init);
|
||||||
* misc functions
|
* misc functions
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
|
|
||||||
|
void
|
||||||
|
command_reset(uint32_t *args)
|
||||||
|
{
|
||||||
|
NVIC_SystemReset();
|
||||||
|
}
|
||||||
|
DECL_COMMAND_FLAGS(command_reset, HF_IN_SHUTDOWN, "reset");
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
alloc_maxsize(size_t reqsize)
|
alloc_maxsize(size_t reqsize)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue