summaryrefslogtreecommitdiff
path: root/core/cortex-m/watchdog.c
blob: e0a58953fbaca28b1160781c614f8f0c2d356d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Watchdog common code */

#include "timer.h"
#include "watchdog.h"


/* Low priority task to reload the watchdog */
void watchdog_task(void)
{
	while (1) {
		usleep(WATCHDOG_RELOAD_MS * 1000);
		watchdog_reload();
	}
}