summaryrefslogtreecommitdiff
path: root/chip/stm32/adc-stm32f0.c
blob: ca9cea1248dd639772dc7901acc43f1a6fb58b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Copyright (c) 2014 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.
 */

#include "adc.h"
#include "adc_chip.h"
#include "common.h"
#include "console.h"
#include "dma.h"
#include "hooks.h"
#include "registers.h"
#include "task.h"
#include "timer.h"
#include "util.h"

int adc_enable_watchdog(int ain_id, int high, int low)
{
	return EC_ERROR_UNKNOWN;
}

int adc_disable_watchdog(void)
{
	return EC_ERROR_UNKNOWN;
}

int adc_read_channel(enum adc_channel ch)
{
	return EC_ERROR_UNKNOWN;
}

int adc_read_all_channels(int *data)
{
	return EC_ERROR_UNKNOWN;
}

static void adc_init(void)
{
}
DECLARE_HOOK(HOOK_INIT, adc_init, HOOK_PRIO_DEFAULT);