FreeCalypso > hg > freecalypso-tools
diff target-utils/flash-boot-test/watchdog.c @ 488:cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 21 May 2019 20:55:19 +0000 |
parents | |
children | 3d7b546c710c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/target-utils/flash-boot-test/watchdog.c Tue May 21 20:55:19 2019 +0000 @@ -0,0 +1,9 @@ +#include "types.h" + +void +cmd_watchdog_disable() +{ + /* stop/disable the watchdog timer */ + *(volatile u16 *)0xFFFFF804 = 0xF5; + *(volatile u16 *)0xFFFFF804 = 0xA0; +}