diff options
Diffstat (limited to 'src/sys/power.c')
-rw-r--r-- | src/sys/power.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/power.c b/src/sys/power.c new file mode 100644 index 0000000..4abee01 --- /dev/null +++ b/src/sys/power.c @@ -0,0 +1,7 @@ +#include "../sys/core.h" +#include "../sys/power.h" + +void reboot(void) { + store32(PM_WDOG, PM_PASSWORD | 1); + store32(PM_RSTC, PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET); +} |