From 7083a33ecd1cdcf5402cccbdb53f56cdfaf80f5e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 3 Sep 2017 22:02:48 -0400 Subject: pru: Support config_reset command to manually reset mcu Add support for resetting the MCU via a software only mechanism. This is useful on the PRU. Signed-off-by: Kevin O'Connor --- src/pru/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pru') diff --git a/src/pru/main.c b/src/pru/main.c index 49d929ef..3edce8ec 100644 --- a/src/pru/main.c +++ b/src/pru/main.c @@ -212,6 +212,9 @@ struct my_resource_table { * Startup ****************************************************************/ +// Support config_reset +DECL_COMMAND_FLAGS(config_reset, HF_IN_SHUTDOWN, "config_reset"); + // Main entry point int main(void) -- cgit v1.2.3-70-g09d2