view target-utils/flash-boot-test/watchdog.c @ 489:9fce32cc6220

CHANGES: flash-boot-test watchdog disable command documented
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 21 May 2019 21:25:07 +0000
parents cd900b885eb2
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;
}