diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-09-03 22:02:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-09-03 23:16:38 -0400 |
commit | 7083a33ecd1cdcf5402cccbdb53f56cdfaf80f5e (patch) | |
tree | 95a1984058658800446ace751b6d0adeee35a415 /src/pru | |
parent | 7b7f57e01c87efc74ed0c632b14c1fc7897c5a6e (diff) | |
download | kutter-7083a33ecd1cdcf5402cccbdb53f56cdfaf80f5e.tar.gz kutter-7083a33ecd1cdcf5402cccbdb53f56cdfaf80f5e.tar.xz kutter-7083a33ecd1cdcf5402cccbdb53f56cdfaf80f5e.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/pru')
-rw-r--r-- | src/pru/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |