view 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 source

#include "types.h"

void
cmd_watchdog_disable()
{
	/* stop/disable the watchdog timer */
	*(volatile u16 *)0xFFFFF804 = 0xF5;
	*(volatile u16 *)0xFFFFF804 = 0xA0;
}