comparison 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
comparison
equal deleted inserted replaced
487:6585c21cc4d4 488:cd900b885eb2
1 #include "types.h"
2
3 void
4 cmd_watchdog_disable()
5 {
6 /* stop/disable the watchdog timer */
7 *(volatile u16 *)0xFFFFF804 = 0xF5;
8 *(volatile u16 *)0xFFFFF804 = 0xA0;
9 }